Of course I know \w matches 8. That was the point of the example.
Then I'm sorry, but I still don't understand the point you are making?
Using one regex that matches both required components, to check if the string contains both components just doesn't make any sense. To me at least.
In reply to Re^9: Regex match at the beginning or end of string
by BrowserUk
in thread Regex match at the beginning or end of string
by cyber-guard
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |