|
|
| go ahead... be a heretic | |
| PerlMonks |
Re: Detecting if a string is a regular expressionby Kenosis (Deacon) |
| on Jan 10, 2013 at 19:59 UTC ( #1012732=note: print w/ replies, xml ) | Need Help?? |
|
You could create a regex that checks the string for the characters you want to allow, e.g.:
The above's not intended to be exhaustive for allowable characters, but only an example.
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||