in reply to How would you write this RegExp?
Test this:
my $re = qr[^[0-9a-zA-Z.\\/_%$'(){}&!~`@#^-]+$];; print $string !~ $re ? 1 : 0;;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: How would you write this RegExp?
by harangzsolt33 (Deacon) on Jul 26, 2016 at 21:49 UTC |