oO
Member since May 26, 2010
- Profile: /members/6108-oo.htm
- Comments: 1
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 »