You are on page 1of 1
regularexpressions s Start of sting \ Start of sting $ End of string z End of string \b Wiord boundary 8 Not word boundary \< Start of word » End of word Control character white space Not white space Digit not agit Word w Not word \ Hexadecimal digit \o Octal diait Posix :upper:} Upper case letters [lower] Lower case letters [ealpha:] All letters [:alnum:] Digits and letters Leaigit:] Digits: Lxciait:] Hexadecimal digits E:punct:] Punctuation [:blank:] ‘Space and tab [:space:} Blank characters [sentrt:] Control characters [:graph Printed characters Eprints] Printed characters and spaces [:word:) Digits, letters ang underscore Lookahead assertion Negative lookahead Lookbehind assertion Negative lookbehind ‘Once-only Subexpression condition {if then} Condition [if then else] Comment Avallable free from www. tLovelackDariels.com or more + Lor more > Oord Gy Exactly 3 B) 3or more 2.5) 3,405 Jantifier Modifiers '<" below represents 3 quantifier ” Ungreedy version of "x" Escape Character \ Escape Character eee 2 l $ { i \ ) 1 Coe ng Any character except new line (\n) (e1b) sorb (..) Group @ Passive Group [abe} Range (a oF b or c) [Mabe] Not a or bore [ava] Letter between a and q (AQ) Upper case letter between A and Q {0-7} Digit between 0 and 7 \o nth group/subpattern Note: Ranges are inclusive. eae Q Global match i Case-insensitive m Multiple tines 5 ‘Treat string as single line x Allow comments and white space in pattorn e Evaluate replacement u Ungreedy pattern Special Characters we census) ((A-Za-20-9-}+) (oth. 2>VV\a1,2>V\04}) (LA\6]+@=\.Gpalsifipng))\\2) ($11-9){1}$17[1-4)(4}[0-9}{1}$1°508) (#2((A-Fa-f0-9]){3}((A-Fe-f0-9]){3})?) *[8-2))-{8,15}) (we @le-z0-2_]47\.[3-20-21(26)) (\]4\>) extensively tested. Please use nith caution New tine $n nth non-passive group Na Carriage return 92 sayz" in /*(abe(xy2))8/ tt Tab $1 ay2" in /(?:abc)(xyz)S/ w Vertical tab a Before matched string Form feed § After matched string \yoor (Octal character x00 Last matched string \xhh Hex character nh $8 Entire matched string Sood Pattern will Mater Note: These patterns are intended for reference purposes and have not been Letters, numbers and hyphens Date (e.g. 21/3/2006) 1p9, 9if or png image Any number from 1 to 50 inclusive Valid hexadecimal colour code String with at least one upper case letter, one lower case letter, and one digit (useful for passwords). Email addressse HTML Tags ‘and test thoroughly before use.

You might also like