Sign In
|
Register
> Browse
all docs
DocStore
Legal
Business
Personal Finance
Technology
Education
Jobs & Careers
Tax
Real Estate
Current Events
Politics & History
Guides
Science
Entertainment
Health & Fitness
Medicine
Conferences
Art & Literature
Lifestyle
Travel
Templates
> Featured
> Browse
> Create
Regular Expressions Cheat Sheet Business Document Template
Description
Regular Expressions Cheat Sheet Business Document Template
Reviews
Shared by:
Alisha Wright
Categories
Technology
Tags
expressions
,
cheat sheet
,
business document
,
template
,
form
Stats
views:
921
rating:
not rated
reviews:
0
posted:
1/1/2008
language:
English
pages:
0
Public Domain
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 Quantifiers * + ? {3} {3,} {3,5} 0 or more 1 or more 0 or 1 Exactly 3 3 or more 3, 4 or 5 Groups and Ranges . (a|b) (...) (?:...) [abc] [^abc] [a-q] [A-Q] [0-7] \n 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 Note: Ranges are inclusive. Pattern Modifiers g Global match Case-insensitive Multiple lines Treat string as single line Allow comments and white space in pattern e U Evaluate replacement Ungreedy pattern Quantifier Modifiers "x" below represents a quantifier x? Ungreedy version of "x" Character Classes \c \s \S \d \D \w \W \x \O 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 Assertions ?= ?! ?<= ?!= or ? ?() ?()| ?# Lookahead assertion Negative lookahead Lookbehind assertion Negative lookbehind Once-only Subexpression Condition [if then] Condition [if then else] Comment Available free from www.ILoveJackDaniels.com Control character White space Not white space Digit Not digit Word Not word Hexadecimal digit Octal digit Escape Character \ Escape Character Metacharacters (must be escaped) ^ $ ( ) < Special Characters \n \r \t \v \f \xxx \xhh 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}) New line Carriage return Tab Vertical tab Form feed Octal character xxx Hex character hh [ { \ | > . * + ? i m s x 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 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). (\w+@[a-zA-Z_]+?\.[a-zA-Z]{2,6}) (\<(/?[^\>]+)\>) Email addresses HTML Tags Note: These patterns are intended for reference purposes and have not been extensively tested. Please use with caution and test thoroughly before use.
Shared by:
Alisha Wright
Alisha Wright
Entrepreneur, Social M...
President
Weblaunches, Inc
twitter.com/weblaunche...
contact me
In order to send a message you need to be logged in.
About
Social Media Entrepreneur and Strategist.
Other docs by
Alisha Wright
Heisman Trophy Candidate Previews
Views: 34 | Downloads: 0
Heisman Trophy Race 2009
Views: 43 | Downloads: 0
Mia Hamm Chosen As The 2009 Heisman Humanitarian Recipient
Views: 22 | Downloads: 0
Heisman Trophy Winners
Views: 91 | Downloads: 0
2009 2010 College Football Official Bowl Games Schedule
Views: 246 | Downloads: 0
Guitar Hero 5 Song List Track List
Views: 30 | Downloads: 0
Independent Publisher Book Awards Call for Entries
Views: 44 | Downloads: 0
Alabama Crimson Tide Football Stats
Views: 458 | Downloads: 5
College Football Poll Rankings Week Ending November 8 2009
Views: 176 | Downloads: 0
Old Dogs Movie Poster
Views: 142 | Downloads: 1
How they Voted on the Health Care Bill - Roll Call Record
Views: 480 | Downloads: 4
Google Doodle Celebrating Sesame Street 40th Anniversary
Views: 173 | Downloads: 2
HP Consumer PCs Eligible for Free Windows 7 Upgrade
Views: 665 | Downloads: 3
Revised FTC Endorsement Guidelines
Views: 47 | Downloads: 1
Toys R Us Big Book 2009 Goes Social
Views: 695 | Downloads: 11
Related docs
asp Cheat Sheet Business Document Template Printable Tips and Ideas
Views: 611 | Downloads: 57
Regular Expressions Cheat Sheet
Views: 17 | Downloads: 6
Regular Expressions Cheat Sheet
Views: 0 | Downloads: 0
Ruby on Rails Cheat Sheet Business Document Printout
Views: 530 | Downloads: 32
Regular Expression Cheat Sheet
Views: 280 | Downloads: 3
Regular Expressions Cheat Sheet
Views: 0 | Downloads: 0
Expressions Web Cheat Sheet
Views: 3 | Downloads: 0
Mastering_Regular_Expressions
Views: 63 | Downloads: 10
Cheat Sheet
Views: 21 | Downloads: 0
Template Document
Views: 35 | Downloads: 0
JavaScript Cheat Sheet
Views: 65 | Downloads: 22
Cheat Sheet
Views: 17 | Downloads: 0
D2L Cheat Sheet
Views: 16 | Downloads: 0