Skip to main content
Ben Nadel at cf.Objective() 2010 (Minneapolis, MN) with: Anthony Israel-Davis
Ben Nadel at cf.Objective() 2010 (Minneapolis, MN) with: Anthony Israel-Davis ( @anthony_id )

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 »