Regexp:

Subject string:

Test  -   Matched
Replacement text:

Result:

pat:
(<[A|a]\sHREF='.*[^']).*(>.*</[A|a]>) rep:<LI>$1$2</LI> <DT>(<A HREF='.*)[\077](.*[^'])(['].*>.*</A>) $1$3 loose ?... insensitive, global, multiline set [a-z0-9] (or|if) \d igit, \s pacewhite \S not \b eginword \B not .anychar~\nl \w ordchar \W ordnot \xdd hex \0 null, \n ewline, \f ormfeed, \r eturn, \t ab, \v vtab, +{1,} *{0,} ?{0,1} {min,max} {count} http://\S+ with <a href="$&">$&</a> to turn all URLs in a file into HTML regexp \b[A-Z0-9._%+-]+@[A-Z0-9.-]+\.[A-Z]{2,4}\b email ^[A-Z0-9._%+-]+@[A-Z0-9.-]+\.[A-Z]{2,4}$ only $& var str = "Visit Reason"; var n = str.search(/Reason/i); var str = "Visit Microsoft!"; var res = str.replace(/microsoft/i, "Reason"); var str = "Visit Microsoft!"; var res = str.replace("Microsoft", "Reason"); var patt = /e/; patt.test("The best things in life are free!"); /e/.test("The best things in life are free!"); /e/.exec("The best things in life are free!");