I'm not escaping the hyphen because it is a range, I am suggesting escaping it for a clearer regex. Or re-ordering the entries within the character class.
Usage is buggy? How so? perl -e 'print join "\n", qr/[\w\-]/,qr/[\w-]/,""' prints
on my system. That explains nothing to me.(?-xism:[\w\-]) (?-xism:[\w-])
In reply to Re: Re: Re: Re: Re: Checking input
by Nkuvu
in thread Checking input
by skirrow
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |