RegEx Cheat-Sheet
About RegEx Cheat-Sheet
RegEx Cheat-Sheet
Forget what some of the functions and syntax in RegEx (Regular Expressions) do?
No worries: Here's a quick reference guide to help you. Use this app for any quick reference and it works completely offline.
The cheatsheet includes:
* Matching: Normal Classes [...] and [^...]
* Matching: Any Character dot (.)
* Class Shorthands (\w, \d, \s, \W, \D, \S)
* POSIX Character Classes (about POSIX, [:alnum:], [:alpha:], [:blank:], etc.)
* Unicode Properties
* Unicode Combining Sequences (\X, and the standard properties list - properties and meanings)
* Anchors and Zero-width Assertions (start and end of line/string, start of match, would boundary, look ahead and look behind)
* Comments and mode modifiers
* Grouping and Conditionals
* and many more
To make this cheatsheet useful in the field, we've included a collection of commonly used patterns:
* Removing leading and trailing white space
* Valid HTML hex code
* U.S. SS#
* U.S. Zip codes
* U.S. Currency
* Date/Time
* Dotted Quad IP address
* MAC address
* Email Addresses
* HTML URLS
* and many more
Most importantly, we've covered the ways in which different languages use RegEx. The cheatsheet includes language specifics for:
* PERL
* JAVA (java.util.regex)
* .NET and C#
* PHP
* Python
* Ruby
* JavaScript
Use it as a quick reference for topics you’ve already learned but need a few reminders on, or if you’re still a beginner to RegEx, use it to better understand what RegEx is capable of.