in reply to Re: regex backtracking question
in thread regex backtracking question
Is it different because \w{2,}? has a sort of counter that remembers how long was the last attempt? And so it extends the match when it tries to run again because matching a longer chain is seen as a "new match that didn't occur here before"?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: regex backtracking question
by AnomalousMonk (Archbishop) on Apr 24, 2014 at 01:34 UTC | |
by aeqr (Novice) on Apr 24, 2014 at 01:47 UTC |