Regex bug?

Answered

Hello

This regex: name="(.*)_<\?=\$i;\?>_(.*)"

mark all this sentence:

name="section_<?=$i;?>_Cta_url" type="text" width=""

while 

this one: name="(\w)_<\?=\$i;\?>_(\w)"

marks nothing

 

what should I put as regex to find only this part:

name="section_<?=$i;?>_Cta_url"

?

 
1 comment

Oops, I missed "*" after \w

name="(\w*)_<\?=\$i;\?>_(\w*)" work correct

1

Please sign in to leave a comment.