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

^abc

StarStarStarStar

Matches any string that starts with 'abc'.

StarStarStarStar

abc

StarStarStarStar

Matches any string that ends with 'abc'.

StarStarStarStar

a.b

StarStarStarStar

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

StarStarStarStar

a*b

StarStarStarStar

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

StarStarStarStar

a+b

StarStarStarStar

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

StarStarStarStar

a?b

StarStarStarStar

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

StarStarStarStar

a{3}

StarStarStarStar

Matches exactly three consecutive 'a's.

StarStarStarStar

a{3,}

StarStarStarStar

Matches three or more consecutive 'a's.

StarStarStarStar

a{2,4}

StarStarStarStar

Matches between two and four consecutive 'a's.

StarStarStarStar

(abc)

StarStarStarStar

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

StarStarStarStar

[abc]

StarStarStarStar

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

StarStarStarStar

[^abc]

StarStarStarStar

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

StarStarStarStar

a|b

StarStarStarStar

Matches either 'a' or 'b'.

StarStarStarStar

\d

StarStarStarStar

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

StarStarStarStar

\w

StarStarStarStar

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

StarStarStarStar

\s

StarStarStarStar

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

StarStarStarStar

\b

StarStarStarStar

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

Know
0
Still learning
Click to flip
Know
0
Logo

© Hypatia.Tech. 2024 All rights reserved.