[0-9_]*[a-zA-Z][a-zA-Z0-9_]*
So to check if an entire string matches one of your sequences,
if ($str =~ /^[0-9_]*[a-zA-Z][a-zA-Z0-9_]*\z/) { ... }
In reply to Re: Looking for a regular expression for the following pattern.
by ikegami
in thread Looking for a regular expression for the following pattern.
by skooma
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |