Skip to main content
Ben Nadel at cf.Objective() 2014 (Bloomington, MN) with: Jonathan Smith
Ben Nadel at cf.Objective() 2014 (Bloomington, MN) with: Jonathan Smith

Pierre

Member since Feb 5, 2010

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 »