Application 2018-12-01

Basics of Regular Expressions

Master regular expression fundamentals using character classes, anchors, quantifiers, and grouping constructs for pattern matching.

Read in: ja
Basics of Regular Expressions

Overview

Basics of regular expressions. This summarizes commonly used notations in ERE (Extended Regular Expression).

Character Classes

[string]

[^string]

[string-string]

\d

\D

\w

\W

\s

\S

Anchors

^

$

Grouping Constructs

(subexpression)

Quantifiers

*

+

?

*?

+?

??

{n}

{n,}

{n, m}

Alternation Constructs

|

References

Tags: ERE Regular Expressions
Share: 𝕏 Post Facebook Hatena
✏️ View source / Discuss on GitHub
☕ Support

If you enjoy this blog, consider supporting it. Every bit helps keep it running!


Related Articles