regEx

https://cheatography.com/davechild/cheat-sheets/regular-expressions/

Anchors

Character Classes

POSIX

Assertions

Quanti­fiers

Add a ? to a quantifier to make it ungreedy.

Escape Sequences

"­Esc­api­ng" is a way of treating characters which have a special meaning in regular expres­sions literally, rather than as special charac­ters.

Common Metach­ara­cters

The escape character is usually \

Special Characters

Groups and Ranges

Ranges are inclusive.

Pattern Modifiers

* PCRE modifier

String Replac­ement

Some regex implem­ent­ations use \ instead of $.

Last updated