This is my string
    '<input type="hidden" name="mode" value="<?=$modeValue?>"/>'
I am trying to take 1) name="mode" and 2) value="<?=$modeValue?>"
from it.
I ran two regex to find it which is
    /name\s*=\s*['\"].*['\"]/ for name="mode" and /value\s*=\s*['\"].*['\"]/ for value="<?=$modeValue?>"
But I fail to get name="mode" on the first regex.
Instead I get name="mode" value="$modeValue".
However I succeeded in getting value="<?=$modeValue?>"
What is wrong with my regex for name="mode"?
My observation, I think I have to make the regex stops at the first " it encounters. Anyone know how to do this. I am running out of time...
 
     
    