The regex question has been answered by ikegami and graff, but I just thought I'd toss this into the mix.
If all you want to do is "match" (validate) that a string has between zero and 1000 characters, you could also do this:
if( defined( $string ) and length( $string ) <= 1000 ) { print "It's a match!\n"; }
Dave
In reply to Re: stupid regex confusion
by davido
in thread stupid regex confusion
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |