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 2,180 community submitted regex patterns...
3
3 upvotes, 0 downvotes (score 43.8%) (You must be signed in to vote)
Caltrans EA validation with optional XX-XXXXXX entry and C##-#????#
.NET (C#)
Checks validity of an EA number first two digits 01-12 followed by hyphen then a number from 0-4 and then 4 numbers or uppercase letters and ending in a 1 or 4 for example "05-1J7601". Adding a capital C to the beginning is also accepted "C05-1J7601", along with the entry of 2 X's hyphen and 6 X's ...
Submitted by
RDJ@Ct
-
8 months ago
2023-04-07 19:11
(Last modified 8 months ago)
2023-04-07 19:51
2
3 upvotes, 1 downvotes (score 30.1%) (You must be signed in to vote)
match those lines whose first n chars contains 1+ non numeric
Python
1100582367|SDFDSFDSFDSFDSFDF GBC213WREW|RWEFSDFSDF 1100582377|DSFDSFDSFDSF 2NDG.S.D BIKADSFDSFDSFNO.421 1100582387|SDFSDFSDFDSF
Submitted by
sid
-
8 years ago
2016-04-05 20:01
3
3 upvotes, 0 downvotes (score 43.8%) (You must be signed in to vote)
Capture Query Strings
Python
A solution for capture query params.
Submitted by
Rafael Laurindo
-
8 years ago
2016-05-15 10:22
3
3 upvotes, 0 downvotes (score 43.8%) (You must be signed in to vote)
Email
Python
Python
Submitted by
anonymous
-
7 years ago
2016-09-07 03:55
3
3 upvotes, 0 downvotes (score 43.8%) (You must be signed in to vote)
Thorough UK Postcode Validator with In/Out code capture groups
Python
A more thorough UK postcode validator tested against all UK postcodes on a regular basis, but excluding the special GIRO postcode case out of personal preference. Additionally has capture groups for the In-code and Out-code sections. Requires case insensitive matching.
Submitted by
Chris G
-
7 years ago
2016-09-30 15:51
1
3 upvotes, 2 downvotes (score 23.1%) (You must be signed in to vote)
Strip ANSI escape characters
Python
no description available
Submitted by
anonymous
-
10 years ago
2014-02-26 14:28
2
3 upvotes, 1 downvotes (score 30.1%) (You must be signed in to vote)
Palabras en mayúscula que no están después de un punto
Python
no description available
Submitted by
anonymous
-
10 years ago
2014-04-18 16:57
2
3 upvotes, 1 downvotes (score 30.1%) (You must be signed in to vote)
Parasite subtitles
Python
no description available
Submitted by
Andrey Spiridonov
-
10 years ago
2014-05-19 18:38
3
3 upvotes, 0 downvotes (score 43.8%) (You must be signed in to vote)
how to match both lines?
Python
f_name may contain spaces, numbers, characters,... so I would go for a but then I couldn't use [...]? anymore to match the second line?
Submitted by
anonymous
-
9 years ago
2014-07-22 09:38
-3
3 upvotes, 6 downvotes (score 12.1%) (You must be signed in to vote)
Match substitutions
Python
Match regular expressions substitutions, I personally use this to perform my validate if it is a substitution, then call re.sub() on it.
Submitted by
Zarthus
-
9 years ago
2014-07-26 13:32
-2
3 upvotes, 5 downvotes (score 13.7%) (You must be signed in to vote)
Basic grammar for regex matching of simplistic Makefiles
Python
This expression should both normal and wildcard targets and rules wrapped in simple sub-shell or varriable substitution enclosures.
Submitted by
Robert Butler <me@r-butler.net>
-
9 years ago
2014-08-13 01:11
3
3 upvotes, 0 downvotes (score 43.8%) (You must be signed in to vote)
Find URLs in markdown where the lines have been wrapped
Python
no description available
Submitted by
anonymous
-
9 years ago
2014-08-26 21:13
2
3 upvotes, 1 downvotes (score 30.1%) (You must be signed in to vote)
python regex
Python
no description available
Submitted by
anonymous
-
9 years ago
2014-09-05 20:18
1
3 upvotes, 2 downvotes (score 23.1%) (You must be signed in to vote)
sad smiley
Python
looks for a sad smiley with a backslash
Submitted by
@barraponto
-
9 years ago
2014-11-13 20:34
2
3 upvotes, 1 downvotes (score 30.1%) (You must be signed in to vote)
Capture 5 words either side of a match string
Python
no description available
Submitted by
anonymous
-
9 years ago
2014-11-28 04:37
-1
3 upvotes, 4 downvotes (score 15.8%) (You must be signed in to vote)
text beetween text
Python
no description available
Submitted by
karol
-
9 years ago
2015-01-23 10:35
1
3 upvotes, 2 downvotes (score 23.1%) (You must be signed in to vote)
check phone number(Taiwan)
Python
If pattern match, then this number probably is a phone number in Taiwan.
Submitted by
Assalin
-
9 years ago
2015-02-03 05:54
2
3 upvotes, 1 downvotes (score 30.1%) (You must be signed in to vote)
Match 5 forward slashes
Python
Match 5 forward slashes
Submitted by
anonymous
-
9 years ago
2015-04-16 23:13
1
3 upvotes, 2 downvotes (score 23.1%) (You must be signed in to vote)
Find exeptions in log4j
Python
regex to consider exceptions in log4j
Submitted by
anonymous
-
9 years ago
2015-04-23 13:19
1
3 upvotes, 2 downvotes (score 23.1%) (You must be signed in to vote)
postfix
Python
get ip identifier, queue name, email domain and status from postfix log
Submitted by
kglod
-
9 years ago
2015-05-07 11:21
1
2
3
4
5
6
...
109
Sanitize percentage input into bare real number
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Regular Expression
.NET (C#)
@"
^
*
(
[
\+\-
]
?
)
*
(?>
(
[
0
-
9
]
+
)
[
.,
]
?
(
[
0
-
9
]
*
)
|
[
.,
]
?
(
[
0
-
9
]
+
)
)
*
%
?
*
$
"
Open regex in editor
Description
Loading markdown...
Submitted by
Moravuscz
-
a year ago
2022-11-23 13:23