in reply to Re^7: Regex match at the beginning or end of string
in thread Regex match at the beginning or end of string
Of course I know \w matches 8. That was the point of the example. Both /^(?=.*\w)(?=.*\d)/ and /\w/ && /\d/ break down on this.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^9: Regex match at the beginning or end of string
by BrowserUk (Patriarch) on Feb 20, 2011 at 15:42 UTC | |
by JavaFan (Canon) on Feb 20, 2011 at 15:55 UTC |