Created
June 5, 2014 06:26
-
-
Save jackbrown/327c519e657a1ff24f8b to your computer and use it in GitHub Desktop.
Regular expression for finding a regular expression in a file
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
/(?!\/\/)(\/)(?!.*?(com|net|com\.au|co\.uk))(.*?){1,}(\/i?g?m?y?)/g | |
Example: http://regexr.com/38uu8 | |
TODO: get it working with regular expressions that contain \/ | |
TODO: flags should be allowed in any order or combination |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment