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 13,640 community submitted regex patterns...
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
CG
PCRE (PHP <7.3)
ptSText
Submitted by
anonymous
-
8 years ago
2015-11-23 14:42
-1
1 upvotes, 2 downvotes (score 6.1%) (You must be signed in to vote)
شش
Python
no description available
Submitted by
anonymous
-
8 years ago
2015-11-23 14:07
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
combined log regex
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
8 years ago
2015-11-23 13:54
2
2 upvotes, 0 downvotes (score 34.2%) (You must be signed in to vote)
preprocess text files to include only readable and text words
Python
for large corpus cleaning
Submitted by
aliabbas petiwala
-
8 years ago
2015-11-23 12:37
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
Obtaining class, method and line number from stack trace line
PCRE (PHP <7.3)
no description available
Submitted by
@mahesha999
-
8 years ago
2015-11-23 10:31
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
Container Number
PCRE (PHP <7.3)
Check ISO 6346 container number. First three chars, unit type, six digits and then one check digit.
Submitted by
Symon Davis
-
8 years ago
2015-11-23 09:24
0
1 upvotes, 1 downvotes (score 9.5%) (You must be signed in to vote)
camelCase
PCRE (PHP <7.3)
no description available
Submitted by
Danno
-
8 years ago
2015-11-23 05:05
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
Multi word
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
8 years ago
2015-11-23 00:11
0
1 upvotes, 1 downvotes (score 9.5%) (You must be signed in to vote)
Add xml:space to file
PCRE (PHP <7.3)
no description available
Submitted by
Yu Tang
-
8 years ago
2015-11-22 17:48
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
2 dots email
PCRE (PHP <7.3)
Allow only two dots email address, for username.group@domain.tld
Submitted by
Emad Abughali
-
8 years ago
2015-11-22 13:24
0
1 upvotes, 1 downvotes (score 9.5%) (You must be signed in to vote)
Phone number
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
8 years ago
2015-11-22 12:22
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
Phone number
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
8 years ago
2015-11-22 12:22
0
1 upvotes, 1 downvotes (score 9.5%) (You must be signed in to vote)
Date Parser
Python
Parses date in (Month Day Year) format with delimiting chars being -\/ or whitespace
Submitted by
Awk
-
8 years ago
2015-11-20 20:40
0
1 upvotes, 1 downvotes (score 9.5%) (You must be signed in to vote)
JSON Validator
PCRE (PHP <7.3)
Complete (recursive) JSON validation regular expression.
Submitted by
@Erutan409
-
8 years ago
2015-11-20 19:00
0
1 upvotes, 1 downvotes (score 9.5%) (You must be signed in to vote)
LaTeX - Nonspaced operators
PCRE (PHP <7.3)
Find nonspaced operators with capturing groups to reformat correctly.
Submitted by
Dave
-
8 years ago
2015-11-20 18:54
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
miri
Python
no description available
Submitted by
anonymous
-
8 years ago
2015-11-20 13:41
2
3 upvotes, 1 downvotes (score 30.1%) (You must be signed in to vote)
notepad++
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
8 years ago
2015-11-20 13:33
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
Hook ActionTag Parser
PCRE (PHP <7.3)
Parses @FOO=BAR, @FOO, and @FOO{"JSON":"OBJECT"} to be used in REDCap action tags for passing parameters to functions.
Submitted by
Andrew Martin
-
8 years ago
2015-11-20 06:29
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
folio
PCRE (PHP <7.3)
no description available
Submitted by
calvin
-
8 years ago
2015-11-20 06:16
0
1 upvotes, 1 downvotes (score 9.5%) (You must be signed in to vote)
remove last char from string (once)
PCRE (PHP <7.3)
remove the last char from a string. Replace 'e' with the char to remove.
Submitted by
anonymous
-
8 years ago
2015-11-20 05:52
1
...
580
581
582
583
584
585
586
...
682
Bind Zonefile serial number
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
Regular Expression
PCRE (PHP <7.3)
/
(
\d
)
.
*
(?=
\s
*
;
[
s|S
]
erial
)
/
Open regex in editor
Description
Loading markdown...
Submitted by
Eric Osterberg
-
8 years ago
2015-10-26 20:23