Skip to main content
Ben Nadel
On User Experience (UX) Design, JavaScript, ColdFusion, Node.js, Life, and Love.


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 »