Created
August 2, 2011 17:09
-
-
Save qpfiffer/1120670 to your computer and use it in GitHub Desktop.
Regex madness
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| $model_name =~ s/^\/(.*)\/$/$1/; | |
| if ($model_name =~ m/([^\\]|^)\//) | |
| { | |
| print STDERR "Invalid model name regex.\n"; | |
| exit 1; | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment