Last active
October 25, 2016 07:14
-
-
Save paranoidjk/46bc0d9a43bcfcfff47d368ef34a9652 to your computer and use it in GitHub Desktop.
regex snippet
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
| var singleTagRE = /^<(\w+)\s*\/?>(?:<\/\1>|)$/; | |
| var tagExpanderRE = /<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/ig; | |
| var r20 = /%20/g; | |
| var rhash = /#.*$/; | |
| var rantiCache = /([?&])_=[^&]*/; | |
| var rheaders = /^(.*?):[ \t]*([^\r\n]*)$/mg; | |
| var rlocalProtocol = /^(?:about|app|app-storage|.+-extension|file|res|widget):$/; | |
| var rnoContent = /^(?:GET|HEAD)$/; | |
| var rprotocol = /^\/\//; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment