DJpennywhistle
Programmer
I need to match the first value of a list which looks like string = string/value. So I use the simple code below:<br><br> if(/(?:^input)s*(.*)=(.*)/) <br> {<br> $value1 = $1; <br> $value2 = $2; <br> }<br><br>However, some of the variables in the list have more than on e value associated with them,<br><br>ie string = 1,2,3<br><br>I want to only use the first value given and reject the following numbers and commas. So, I would be left with $value1 = string and $value2 = 1.<br><br>Any ideas?<br><br>Thanks a million <p>Gordon Bell<br><a href=mailto:gordon.bell@xilinx.com>gordon.bell@xilinx.com</a><br><a href= > </a><br>