| CARVIEW |
Select Language
HTTP/2 200
server: nginx
date: Sat, 27 Dec 2025 10:58:20 GMT
content-type: text/html; charset=utf-8
vary: Accept-Encoding
etag: W/"e6ae-WUXBfXXa4E0oBo8gSXKUhNMsSE8"
x-frame-options: SAMEORIGIN
x-xss-protection: 1; mode=block
x-content-type-options: nosniff
referrer-policy: no-referrer-when-downgrade
content-security-policy: default-src 'self' 'unsafe-eval' http: https: data: blob: 'unsafe-inline'
service-worker-allowed: /
cross-origin-opener-policy: same-origin
cross-origin-embedder-policy: credentialless
content-encoding: gzip
regex101: build, test, and debug regex
Regular Expression
Regular Expressions 101
Save & Share
- Save new Regexctrl+s
- Add to Community Library
Flavor
- PCRE2 (PHP >=7.3)
- PCRE (PHP <7.3)
- ECMAScript (JavaScript)
- Python
- Golang
- Java 8
- .NET 7.0 (C#)
- Rust
- Regex Flavor Guide
Function
- Match
- Substitution
- List
- Unit Tests
Tools
- Code Generator
- Regex Debugger
- Export Matches
- Benchmark Regex
Sponsors
There are currently no sponsors. Become a sponsor today!
An explanation of your regex will be automatically generated as you type.
Detailed match information will be displayed here automatically.
- All Tokens
- Common Tokens
- General Tokens
- Anchors
- Meta Sequences
- Quantifiers
- Group Constructs
- Character Classes
- Flags/Modifiers
- Substitution
- A single character of: a, b or c[abc]
- A character except: a, b or c[^abc]
- A character in the range: a-z[a-z]
- A character not in the range: a-z[^a-z]
- A character in the range: a-z or A-Z[a-zA-Z]
- Any single character.
- Alternate - match either a or ba|b
- Any whitespace character\s
- Any non-whitespace character\S
- Any digit\d
- Any non-digit\D
- Any word character\w
- Any non-word character\W
- Non-capturing group(?:...)
- Capturing group(...)
- Zero or one of aa?
- Zero or more of aa*
- One or more of aa+
- Exactly 3 of aa{3}
- 3 or more of aa{3,}
- Between 3 and 6 of aa{3,6}
- Start of string^
- End of string$
- A word boundary\b
- Non-word boundary\B
Regular ExpressionNo Match
No Match
/
/
gm