I think I'm missing something here, I hope someone can't tell me why this fails,
DB<6> $a = 'Apr-Jun03.zip~'; DB<7> p $a =~ /^[\w.-~]+$/ DB<8> p $a =~ /^[~\w.-]+$/ 1 DB<9> p $a Apr-Jun03.zip~ DB<10> p $a =~ /^[\w~.-]+$/ 1 DB<11> p $a =~ /^[\w.~-]+$/ 1
...so if I move the '~' off the end of the character class, the match works. I can't figure out why. Any ideas?
Thanks, sth
In reply to Regex - Char Class Question by sth
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |