I'm wondering if it would still be doable with a single regex with one more constraint added: Maximally one underscore.
Yes.
m[^(?!=.*_.*_)(?=.*[a-zA-Z])[\w]+$]
Corrected. Thanks Roy Johnson
In reply to Re: A single regex
by BrowserUk
in thread A single regex
by kiat
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |