in reply to Ideas to improve this regexp?
You can also write your regex as /\A(?>\s*)\D/, where (?>\s*) means grab all whitespaces and don't give them up for backtracking.
I don't know if you consider that more simple or elegant, though.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Ideas to improve this regexp?
by rovf (Priest) on Nov 03, 2009 at 14:17 UTC |