/https?:\/\/(?:[-\w]+\.)?([-\w]+)\.\w+(?:\.\w+)?\/?.*/i
(?:(?:http|https):\/\/)?([-a-zA-Z0-9.]{2,256}\.[a-z]{2,4})\b(?:\/[-a-zA-Z0-9@:%_\+.~#?&//=]*)? RegExp: /(?:(?:http|https):\/\/)?([-a-zA-Z0-9.]{2,256}\.[a-z]{2,4})\b(?:\/[-a-zA-Z0-9@:%_\+.~#?&//=]*)?/gi pattern: (?:(?:http|https):\/\/)?([-a-zA-Z0-9.]{2,256}\.[a-z]{2,4})\b(?:\/[-a-zA-Z0-9@:%_\+.~#?&//=]*)? flags: gi 1 capturing groups: group 1: ([-a-zA-Z0-9.]{2,256}\.[a-z]{2,4})
^(?!(?:ERROR)).*\s*
/^(\s*)?[^\/]{0,2}((\$log|console)\.(warn|log|info))(.*)$/gmi in Sublime Text: ^(\s*)?[^\/]{0,2}(\$log\.(warn|log|info))(.*)$ test/play here: http://refiddle.com/refiddles/js-and-angular-non-comment-logs
^((?:[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*|"(?:[\x01-\x08\x0b\x0c\x0e-\x1f\x21\x23-\x5b\x5d-\x7f]|\\[\x01-\x09\x0b\x0c\x0e-\x7f])*")@(?:(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?|\[(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?|[a-z0-9-]*[a-z0-9]:(?:[\x01-\x08\x0b\x0c\x0e-\x1f\x21-\x5a\x53-\x7f]|\\[\x01-\x09\x0b\x0c\x0e-\x7f])+)\]))$
(?# phpBB to ExpressionEngine Conversion ------------------------------------ Intra-forum links replacement regex ORIGINAL: --------- http://www.holybork.com/viewtopic.php?p=1129&amphighlight=#1129 TRANSFORMED: ------------ http://www.holybork.com/forums/viewthread/1129/ ) (?# MATCH ) (.*)viewtopic\.php\?p=(\d+)(.*) (?# REPLACE ) \1forums/viewthread/\2/ (?# 17 Nov. 2006 - Raws )
Find: (<h[1-6])(>)(.+)(</h[1-6]>) Replace: $1 id="$3"$2$3$4 Turns <h4>Foobar</h4> into <h4 id="Foobar">Foobar</h4>
# This is how it would look using the Ruby Regexp class # Only match one-line comments Regexp.new(/\/\*.*?\*\//) # Match single and multi-line comments Regexp.new(/\/\*.*?\*\//m)
:s/\(\s*\w\+\).*/\1
[ \t]+$