Ben Nadel
On User Experience (UX) Design, JavaScript, ColdFusion, Node.js, Life, and Love.
Ben Nadel at the New York ColdFusion User Group (Sep. 2009) with: Hansjorg Posch
Ben Nadel at the New York ColdFusion User Group (Sep. 2009) with: Hansjorg Posch

oO

Member since May 26, 2010

Recent Blog Comments By oO

  • Non-Greedy Regular Expression Misunderstanding

    Posted on May 26, 2010 at 6:17 AM

    It matches the right thing. You are mistaken in your regexp. You simply don't understand non-greediness. You write: ({a.+?href="?) href=" is optional, so you get: {a.+? And it matches everything right from {a Specify the limiter, so that + can be non-greedy: {a.+?} Now it will match everything bet... read more »