!Gary Test & Match Reg Exp
Steven Levithan tester
JS RegExp Object
Good reference
D Child Cheat Sheet
Visbone Cheat Sheet

This is a case insenstive search and uses the Javascript Regular expression syntax.
Regular Expressions are for advanced users and folks who program.
Most Autofill users will be well served using the Autofill wizard to create autofill rules for themselves.

TIP: Autofill also supports lookbehind Regular Expression syntax (?<= and ?<!) that is not offered in JavaScript's RegExp object. This allows you to create highly complex text patterns such as the one below, which matches anything that contains "name" but is not immediately preceded by "first" or "last":

   (?<!first|last)name

This will, for example, match "name", "uname", "username", "artistname", and "bookname", but NOT "firstname" or "lastname". Lookbehind syntax only works on the name, id, and class attribute values; you cannot use lookbehinds when matching against field labels.

Regular Expression      Do not enclose Match with ⁄⁄

Url or FieldName


.*live\.com/.*(add|edit).*\.com
http://profile.live.com/P.mvc#!/cid-dc39/details/Add/?break=1&ru=http%3A%2F%2Fco7w.col107.mail.live.com%2Fmail%2FContactMainLight.aspx%3Fn%3D42
[a-zA-Z0-9'\.\-\s]+
sksksk'.-

[\d,\w,\s]+
sksksk'.- [a-zA-Z0-9ÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖØÙÚÛÜÝÞßàáâãäåæçèéêëìíîïðñòóôõöøùúûüýþÿ'\.\s]+

A brief explanation of the regular expression : .*live\.com/.*(add|edit).*\.com
Match the colors in the expression with the corresponding matches in the target string.

.*live\.com/.* (add|edit).*\.com

http://profile.live.com/P.mvc#!/cid-dc39/details/Add/?break=1&ru=http%3A%2F%2Fco7w.col107.mail.live .com

.             Matches any one character
*             Matches zero or more occurrences of the preceding expression
\             Matches the character following the backslash {Used to Find reserved Reg Exp notation characters}
(|)           Match either a or b {match either string1 or string2}

.*, live, \.,com/

any character zero or more times, live,the reserved Reg Exp char . ,com/

http://profile, live,.,com/


.*, (add|edit)

any character zero or more times, Match either add or edit

P.mvc#!/cid-dc39/details/, Add


.*, \.,com

any character zero or more times, the reserved Reg Exp char . ,com

/?break=1&ru=http%3A%2F%2Fco7w.col107.mail.live, .,com


JavaScript Regex Quick Reference

. Any character except newline.
\. A period (and so on for \*, \(, \\, etc.)
^ The start of the string.
$ The end of the string.
\d,\w,\s A digit, word character [A-Za-z0-9_], or whitespace.
\D,\W,\S Anything except a digit, word character, or whitespace.
[abc] Character a, b, or c.
[a-z] a through z.
[^abc] Any character except a, b, or c.
aa|bb Either aa or bb.
? Zero or one of the preceding element.
* Zero or more of the preceding element.
+ One or more of the preceding element.
{n} Exactly n of the preceding element.
{n,} n or more of the preceding element.
{m,n} Between m and n of the preceding element.
??,*?,+?,
{n}?, etc.
Same as above, but as few as possible.
(expr) Capture expr for use with \1, etc.
(?:expr) Non-capturing group.
(?=expr) Followed by expr.
(?!expr) Not followed by expr.