# Regular Expressions
Identifiers: \d Any number \D Anything but a number \s Space \S Anything but a space \w Any character \W Anything but a character . Any character except for a new line \b Whitespace around words \. A period Modifiers: {1,3} We are expecting 1-3 + Match 1 or more ? Match 0 or 1 * Match 0 or more $ Match the end of a string ^ Match the beginning of a string | Either or E.g. \d{1-3}|\w {5-6} [] Range or "variance" [A-Z] or [A-Za-z] [1-5a-qA-Z] {x} Expecting "x" amount White Space Characters: \n New line \t Tab \s Space \f Form \e Escape \r Return DON'T FORGET! . + * ? [ ] $ ^ ( ) { } | \
0 Comments
Leave a Reply. |
AuthorVitali Kremez Archives
January 2016
Categories |