in reply to Explanation for Reg Expr
I would say that the behaviour has to be explained by a combination of three provisions of this documentation:
1) "/g"match globally
2) "?="(update: "lookahead and ..." ) match best (see #3 below) and chain global matches
3) "match best""the earliest match is always the best."
More update: oops that's four provisions, er, amongst our provisions are, er, "I'll come in again"
-M
Free your mind
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Explanation for Reg Expr
by mdunnbass (Monk) on Mar 01, 2007 at 18:45 UTC | |
by ysth (Canon) on Mar 01, 2007 at 19:19 UTC | |
by GrandFather (Saint) on Mar 01, 2007 at 19:48 UTC |