Your specification seems not to be clear ... however you should try to replace
bynext if ($username =~ /ipw\.a^a-ma-z*/);
That way names like "ipw.ammmmawert" would be skipped, but "ipw.anawert" wouldn't.next if ($username =~ /ipw\.a[a-m][a-z]*/);
HTH, Rata
PS.: PLEASE work on your formatting!
update: removed one small ^ (with a big effect)
In reply to Re: reg exp
by Ratazong
in thread reg exp
by venkatperl55
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |