professional documents
home
Upload
docsters
Upload
about me
contact me
user photo
A Wright
Entrepreneur
President
A Group Inc.
Social Media Entrepreneur
submit clear
Acrobat PDF

Regular Expressions Cheat Sheet Business Document Template center doc

technology

Regular Expressions Cheat Sheet Business Document Template

Metacharacters (must be escaped) ^$()< .*+? [{\|> Escape Character \ Escape Character Quantifiers *+?{3} {3,} {3,5} 0 or more 1 or more 0 or 1 Exactly 3 3 or more 3, 4 or 5 Quantifier Modifiers "x" below represents a quantifier x? Ungreedy version of "x" Anchors ^\A $\Z \b \B \< \> Start of string Start of string End of string End of string Word boundary Not word boundary Start of word End of word POSIX [:upper:] [:lower:] [:alpha:] [:alnum:] [:digit:] [:xdigit:] [:punct:] [:blank:] [:space:] [:cntrl:] [:graph:] [:print:] [:word:] Upper case letters Lower case letters All letters Digits and letters Digits Hexadecimal digits Punctuation Space and tab Blank characters Control characters Printed characters Printed characters and spaces Digits, letters and underscore Character Classes \c \s \S \d \D \w \W \x \O Control character White space Not white space Digit Not digit Word Not word Hexadecimal digit Octal digit Special Characters \n \r \t \v \f \xxx \xhh New line Carriage return Tab Vertical tab Form feed Octal character xxx Hex character hh Pattern Modifiers gimsxeU Global match Case-insensitive Multiple lines Treat string as single line Allow comments and white space in pattern Evaluate replacement Ungreedy pattern Available free from www.ILoveJackDaniels.com Assertions ?= ?! ?<= ?!= or ? ?() ?()| ?# Lookahead assertion Negative lookahead Lookbehind assertion Negative lookbehind Once-only Subexpression Condition [if then] Condition [if then else] Comment String Replacement (Backreferences) $n $2 $1 $` $' $+ $& nth non-passive group "xyz" in /^(abc(xyz))$/"xyz" in /^(?:abc)(xyz)$/Before matched string After matched string Last matched string Entire matched string Groups and Ranges .(a|b) (...) (?:...) [abc] [^abc] [a-q] [A-Q] [0-7] \n Note: Ranges are inclusive. Any character except new line (\n) a or b Group Passive Group Range (a or b or c) Not a or b or c Letter between a and q Upper case letter between A and Q Digit between 0 and 7 nth group/subpattern Sample Patterns Pattern ([A-Za-z0-9-]+) (\d{1,2}\/\d{1,2}\/\d{4}) ([^\s]+(?=\.(jpg|gif|png))\.\2) (^[1-9]{1}$|^[1-4]{1}[0-9]{1}$|^50$) (#?([A-Fa-f0-9]){3}(([A-Fa-f0-9]){3})?) ((?=.*\d)(?=.*[a-z])(?=.*[A-Z]).{8,15}) (\w+@[a-zA-Z_]+?\.[a-zA-Z]{2,6}) (\<(/?[^\>]+)\>) Note: These patterns are intended for reference purposes and have not been extensively tested. Please use with caution and test thoroughly before use. Will Match Letters, numbers and hyphens Date (e.g. 21/3/2006) jpg, gif 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 addresses HTML Tags
rate this doc
email this doc
embed this doc
add to folder
digg reddit stumble delicious
flag this doc
786
35
not rated
0
1/1/2008
English
Preview

mysql Cheat Sheet Business Document Template Printout

bamafun 1/1/2008 | 555 | 97 | 0 | technology
Preview

HTML Cheat Sheet Document Printout Template Form

bamafun 1/1/2008 | 1553 | 199 | 3 | technology
Preview

html Cheat Sheet Business Document Template Form

bamafun 1/1/2008 | 391 | 29 | 0 | technology
Preview

asp Cheat Sheet Business Document Template Printable Tips and Ideas

bamafun 1/1/2008 | 511 | 45 | 0 | technology
Preview

php Cheat Sheet Business Document Printable Tips and Ideas

bamafun 1/1/2008 | 543 | 101 | 0 | technology
Preview

Java script Cheat Sheet Business Document Guide Printout Tips and Ideas

bamafun 1/1/2008 | 617 | 120 | 1 | technology
Preview

microformats Cheat Sheet - Business document template guide

bamafun 1/1/2008 | 313 | 11 | 0 | technology
Preview

sql server cheat sheet business document template guide

bamafun 1/1/2008 | 690 | 55 | 0 | technology
Preview

mod-rewrite cheat sheet - business document, template guide

bamafun 1/1/2008 | 579 | 9 | 0 | technology
Preview

CSS Cheat Sheet Tips Ideas Business Document Printout

bamafun 1/1/2008 | 624 | 110 | 0 | technology
Preview

html Character Entities Cheat Sheet Business Document Printout

bamafun 1/1/2008 | 338 | 41 | 0 | technology
Preview

Ruby on Rails Cheat Sheet Business Document Printout

bamafun 1/1/2008 | 398 | 22 | 0 | technology
Preview

RGB HEX Color Chart Printable Business Document

bamafun 1/1/2008 | 641 | 24 | 0 | technology
Preview

Wordpress Cheat Sheet

bamafun 12/18/2007 | 906 | 52 | 1 | technology
Preview

Employee Information Sheet Business Template Form

anonymous 12/9/2007 | 1817 | 81 | 1 | business
Preview

Disney Star Selena Gomez Named Spokesperson for 2008 Trick or Treat UNICEF Campaign

bamafun 10/9/2008 | 34 | 0 | 0 | BUZZ
Preview

Tales from the Dad Side Press Release

bamafun 10/7/2008 | 24 | 0 | 0 | BUZZ
Preview

Brother Introduces New Compact Line of All in One Printers

bamafun 10/7/2008 | 20 | 0 | 0 | BUZZ
Preview

Brother Named Official Sewing Embroidery Licensee of Project Runway Season Five

bamafun 10/7/2008 | 19 | 0 | 0 | BUZZ
Preview

NIH Launches New Web Site for Parents on Medical Research Studies for Children

bamafun 10/7/2008 | 21 | 0 | 0 | BUZZ
Preview

Google and Celebs Pair up to Register Voters

bamafun 10/7/2008 | 17 | 0 | 0 | BUZZ
Preview

Tales from the Dad Side by Author Steve Doocy

bamafun 10/7/2008 | 70 | 0 | 0 | creative
Preview

Coca Cola Babies

bamafun 9/29/2008 | 89 | 0 | 1 | BUZZ
Preview

SEC Charges Miami Resident for Operating Fraudulent Day Trading Operation Targeting Hispanic Community

bamafun 9/27/2008 | 61 | 0 | 0 | BUZZ
Preview

SEC Announces 32 Million Fair Fund Distribution in Ameriprise Revenue Sharing Settlement

bamafun 9/27/2008 | 55 | 0 | 0 | BUZZ
 
review this doc