Logo
Pattern

Discover published sets by community

Explore tens of thousands of sets crafted by our community.

Regular Expressions

17

Flashcards

0/17

Still learning
StarStarStarStar

a{3,}

StarStarStarStar

Matches three or more consecutive 'a's.

StarStarStarStar

a{3}

StarStarStarStar

Matches exactly three consecutive 'a's.

StarStarStarStar

\w

StarStarStarStar

Matches any word character (alphanumeric plus underscore), equivalent to [A-Za-z0-9_].

StarStarStarStar

abc

StarStarStarStar

Matches any string that ends with 'abc'.

StarStarStarStar

[^abc]

StarStarStarStar

Matches any single character that is not 'a', 'b', or 'c'.

StarStarStarStar

a+b

StarStarStarStar

Matches one or more of 'a' followed by 'b'.

StarStarStarStar

\s

StarStarStarStar

Matches any whitespace character (spaces, tabs, line breaks).

StarStarStarStar

^abc

StarStarStarStar

Matches any string that starts with 'abc'.

StarStarStarStar

a.b

StarStarStarStar

Matches any string containing 'a', any character, then 'b'.

StarStarStarStar

a|b

StarStarStarStar

Matches either 'a' or 'b'.

StarStarStarStar

(abc)

StarStarStarStar

Matches the exact sequence 'abc' and captures it as a group.

StarStarStarStar

a{2,4}

StarStarStarStar

Matches between two and four consecutive 'a's.

StarStarStarStar

[abc]

StarStarStarStar

Matches any single character from the set: 'a', 'b', or 'c'.

StarStarStarStar

a?b

StarStarStarStar

Matches zero or one of 'a' followed by 'b'.

StarStarStarStar

\d

StarStarStarStar

Matches any digit, equivalent to [0-9].

StarStarStarStar

\b

StarStarStarStar

Matches a word boundary (the position between a word character and a non-word character).

StarStarStarStar

a*b

StarStarStarStar

Matches zero or more of 'a' followed by 'b'.

Know
0
Still learning
Click to flip
Know
0
Logo

© Hypatia.Tech. 2024 All rights reserved.