Regex Tokens

Technology 52 records updated 2026-07-19

Regex Tokens, with token, meaning, example, and category.

Get this data

GET https://mysafeinfo.com/api/data/regextokens

JSON XML CSV Download CSV

Sort, page, randomize, and download with query parameters; see the documentation.

Without a key, responses return up to 50 rows. A pass returns all 52 records.

Try it live

Run a request against regextokens straight from your browser. Add your API key to lift the row cap and return every record. The call goes to the API and nothing is stored here.

Preview

First 25 of 52 records. Click a column to sort these rows.

ID Token Meaning Example Category
1 . Matches any character except line terminators a.c Character class
2 \d Matches any digit from 0 to 9 \d\d Character class
3 \D Matches any character that is not a digit \D+ Character class
4 \w Matches any letter, digit, or underscore \w+ Character class
5 \W Matches any character that is not a word character \W Character class
6 \s Matches any whitespace character \s+ Character class
7 \S Matches any character that is not whitespace \S+ Character class
8 [abc] Matches any one of the characters a, b, or c [abc] Character class
9 [^abc] Matches any character that is not a, b, or c [^abc] Character class
10 [a-z] Matches any character in the range a to z [a-z] Character class
11 [A-Z] Matches any uppercase letter from A to Z [A-Z] Character class
12 [0-9] Matches any digit in the range 0 to 9 [0-9] Character class
13 ^ Matches the start of the input or line ^abc Anchor
14 $ Matches the end of the input or line abc$ Anchor
15 \b Matches a word boundary position \bword\b Anchor
16 \B Matches a position that is not a word boundary \Bword Anchor
17 * Matches the preceding item zero or more times a* Quantifier
18 + Matches the preceding item one or more times a+ Quantifier
19 ? Matches the preceding item zero or one time a? Quantifier
20 {n} Matches the preceding item exactly n times a{3} Quantifier
21 {n,} Matches the preceding item at least n times a{2,} Quantifier
22 {n,m} Matches the preceding item from n to m times a{2,4} Quantifier
23 *? Matches zero or more times, as few as possible a*? Quantifier
24 +? Matches one or more times, as few as possible a+? Quantifier
25 ?? Matches zero or one time, as few as possible a?? Quantifier

Notes