Of course I know \w matches 8. That was the point of the example. Both /^(?=.*\w)(?=.*\d)/ and /\w/ && /\d/ break down on this.
In reply to Re^8: Regex match at the beginning or end of string
by JavaFan
in thread Regex match at the beginning or end of string
by cyber-guard
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |