Please enable JavaScript to use this web application.
Regular
Expressions
101
Social
Social
Join the Discord community!
Follow me on twitter!
Send me an email
Donate
Donate
Donate through Paypal
Become a Github Sponsor
Info
Info
Find out what's new!
RegEx101 Wiki
Report bugs or make suggestions
What's new?
Loading content...
Close
Regex Editor
Regex Editor
Community Patterns
Community Patterns
Account
Account
Regex Quiz
Regex Quiz
Settings
Settings
Live Help
Live Help
Get help on Discord
Get help on IRC
Order By
Most Recent
Highest Score
Lowest Score
Most upvotes
Most downvotes
Filter by Flavor
PCRE2 (PHP >=7.3)
PCRE (PHP <7.3)
ECMAScript (JavaScript)
Python
Golang
Java 8
.NET (C#)
Rust
Sponsors
Community Patterns
Search among 11,680 community submitted regex patterns...
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
my_device_usage
PCRE2 (PHP >=7.3)
usage
Submitted by
Keith
-
9 months ago
2023-03-13 16:24
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Device_name
PCRE2 (PHP >=7.3)
doesn't process road warrior or dubi location dubii missing interface?
Submitted by
Keith
-
9 months ago
2023-03-13 16:22
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
log filter 01
PCRE2 (PHP >=7.3)
expression for removing unnecessary information
Submitted by
ndeans
-
9 months ago
2023-03-13 15:26
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
ip address
Java 8
ip address regex
Submitted by
shyam
-
9 months ago
2023-03-13 14:07
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Σ = {0, 1}. Cadenas de longitud impar ≥ 3 formadas por ceros y unos alternados.
PCRE2 (PHP >=7.3)
Cadenas de longitud impar ≥ 3 formadas por ceros y unos alternados.
Submitted by
JCMM
-
9 months ago
2023-03-12 19:34
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
bs-icons
PCRE2 (PHP >=7.3)
dwa
Submitted by
anonymous
-
9 months ago
2023-03-12 14:12
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
UTC+
PCRE2 (PHP >=7.3)
Match {space}UTC+{number}
Submitted by
yedrup
-
9 months ago
2023-03-12 11:36
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Telephone
PCRE2 (PHP >=7.3)
\+7\s\(\d{3}\)\s\d{3}\s\d{2}\-\d{2}
Submitted by
anonymous
-
9 months ago
2023-03-11 18:32
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
SSN Finder
PCRE2 (PHP >=7.3)
([0-7]\d{2}(" "|-|\.)?\d{2}(?(2)(" "|-|\.))\d{4}) Finds the first number as 0-7 then matches the next two digits Will check what delimitator (group 2) if any is used finds two digits if a delimitator is used - if it is then use one here, if not then don't (prevents US based zip code + 4 from getti...
Submitted by
ACCS
-
9 months ago
2023-03-11 14:47
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Search for URL
PCRE2 (PHP >=7.3)
Searches the string for valid URLs. Includes HTTP, HTTPS, and localhost with it's port.
Submitted by
Evan Wilson
-
9 months ago
2023-03-10 21:18
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Validar identificación
PCRE2 (PHP >=7.3)
Solo se admiten numeros, sin espacios al inicio o fin
Submitted by
anonymous
-
9 months ago
2023-03-10 14:53
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Validar Nombres
PCRE2 (PHP >=7.3)
Sin espacio al inicio o fin, sin caracteres especiales
Submitted by
Brahian Torres
-
9 months ago
2023-03-10 14:51
(Last modified 5 months ago)
2023-06-22 14:12
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Replace multiple spaces to single space.
PCRE2 (PHP >=7.3)
/preg_replace('!\s+!', ' ', $s)/gm
Submitted by
anonymous
-
9 months ago
2023-03-09 19:51
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
parse spanish medicine names
PCRE2 (PHP >=7.3)
sure that can be more shortly, but well... and a newbie
Submitted by
metaStringDay0
-
9 months ago
2023-03-09 13:29
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
searchjsonmutikey
PCRE2 (PHP >=7.3)
jsonmultikey
Submitted by
anonymous
-
9 months ago
2023-03-09 08:55
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Semantic Version
PCRE2 (PHP >=7.3)
Matches and groups categories of semantic versions.
Submitted by
Jon Stinnett
-
9 months ago
2023-03-08 17:24
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Dynamic Length Version Parser
PCRE2 (PHP >=7.3)
Matches on version syntax, grouping the Major version alone, Minor-Patch, and Label alone.
Submitted by
Jon Stinnett
-
9 months ago
2023-03-08 17:17
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
IPv4 Address
PCRE2 (PHP >=7.3)
Matches on whole IP addresses
Submitted by
Jon Stinnett
-
9 months ago
2023-03-08 17:15
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
IPv4 Address Labelled Octet
PCRE2 (PHP >=7.3)
Matches on IPv4 addresses and groups each octet.
Submitted by
Jon Stinnett
-
9 months ago
2023-03-08 17:13
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Email selection
PCRE2 (PHP >=7.3)
Select emails from a string
Submitted by
anonymous
-
9 months ago
2023-03-08 10:52
1
...
24
25
26
27
28
29
30
...
584
Remove Whitespace
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Regular Expression
PCRE2 (PHP >=7.3)
/
\s
/
gm
Open regex in editor
Description
Loading markdown...
Submitted by
Me
-
10 months ago
2023-02-08 12:18