Pierre
Member since Feb 5, 2010
- Profile: /members/5371-pierre.htm
- Comments: 1
Recent Blog Comments By Pierre
-
Non-Greedy Regular Expression Misunderstanding
Posted on Feb 5, 2010 at 1:39 PM
you would not match this because of the end tag in the string [a name="an>hor" href="TheLink"] You need a more complex regular expression to filter the attributes and the attribute values before matching the first href attribute. [a\s+((\w+="[^"]*|\w+=\w?)\s+)??href="]... read more »