Regular expressions: character quick reference
CharacterMeaning
\Indicates next character should not be interpreted literally if it normally is, and should be interpreted literally if it normally isn't.
^Matches beginning of input or line.
$Matches end of input or line.
*Matches 0 or more instances of preceding character.
+Matches 1 or more instances of preceding character.
?Matches 0 or 1 instances of preceding character.
.Matches any single character other than the newline character.
(x)Matches x and remembers the match.
x|yMatches either x or y.
{n}Matches exactly n instances of preceding character (where n is an integer).
{n,}Matches at least n instances of preceding character (where n is an integer).
{n,m}Matches it least n and at most m instances of preceding character (where n and m are integers).
[xyz]Matches any one of enclosed characters (specify range using hyphen, such as [0-9].
[^xyz]Matches any character not enclosed (specify range using hyphen, such as [^0-9].
[\b]Matches a backspace.
\bMatches a word boundary, such as a space.
\BMatches a nonword boundary.
\cXMatches a control character, X.
\dMatches a digit character (same as [0-9]).
\DMatches a nondigit character (same as [^0-9]).
\fMatches a form feed.
\nMatches a line feed.
\rMatches a carriage return.
\sMatches a single white space character, including space, tab, form feed, and line feed (same as [\f\n\r\t\v]).
\SMatches a single non-white-space character (same as [^\f\n\r\t\v]).
\tMatches a tab.
\vMatches a vertical tab.
\wMatches any alphanumeric character, including the underscore (same as [A-Za-z0-9_]).
\WMatches any nonword character (same as [^A-Za-z0-9_]).
\nA reference to the last substring matching the nth parenthetical (where n is a positive integer).
\ooctal
\xhex
Matches an octal or hexadecimal escape value (for embedding ASCII codes).
Testimonals
I can't envision an easier program to use to record trades.
ProductsMore ...
Electronic Trade Journal
Risk/Reward Calculator
Stock Calculator
Subscription Manager
ArticlesAll
Programming Guidelines
Regular Expressions
Display Source in HTML
HTML-Safe Color Table
Quotes in a HTML TextBox
Convert Windows File to Unix
Shortcuts in the SendTo Menu
Backup and Scan Hard Drive