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 4,320 community submitted regex patterns...
-4
4 upvotes, 8 downvotes (score 13.8%) (You must be signed in to vote)
Matches percentage with any number of digits
Python
Only captures value for converting percentage to decimal. Returns empty if percentage but no value. no match = no percentage found
Submitted by
sharkey
-
8 years ago
2015-06-10 19:26
-4
0 upvotes, 4 downvotes (score 0%) (You must be signed in to vote)
Working With Data regex sample text
PCRE2 (PHP >=7.3)
This is a sample text for use at my "Working With Data" workshop session on regular expressions.
Submitted by
anonymous
-
2 years ago
2021-10-27 18:45
-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
-3
1 upvotes, 4 downvotes (score 3.6%) (You must be signed in to vote)
IPv4 address
Python
Matches any IPv4 address
Submitted by
anonymous
-
8 years ago
2016-04-06 17:12
-2
0 upvotes, 2 downvotes (score 0%) (You must be signed in to vote)
phone number
Python
An extremely complete regex, that... Accepts international phones and most of regional phone numbers; Accepts phone numbers with/without "+", with/without space or "-" in the middle of the phone, and more. Gets groups of all important data of the phone number (local code, country code and the phone ...
Submitted by
@thegamerbr1
-
7 years ago
2016-07-19 04:29
-2
1 upvotes, 3 downvotes (score 4.6%) (You must be signed in to vote)
example
Python
match
Submitted by
anonymous
-
9 years ago
2014-07-28 21:44
-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
-2
1 upvotes, 3 downvotes (score 4.6%) (You must be signed in to vote)
eee
Python
no description available
Submitted by
anonymous
-
9 years ago
2014-09-24 14:21
-2
2 upvotes, 4 downvotes (score 9.7%) (You must be signed in to vote)
link
Python
no description available
Submitted by
NTP-[SADAS]
-
9 years ago
2014-10-06 11:34
-2
2 upvotes, 4 downvotes (score 9.7%) (You must be signed in to vote)
five word capture
Python
no description available
Submitted by
anonymous
-
9 years ago
2014-11-28 04:40
-2
2 upvotes, 4 downvotes (score 9.7%) (You must be signed in to vote)
match only words consisting of 3 repeated letters, e.g. lllkkk
Python
no description available
Submitted by
kali
-
9 years ago
2014-12-21 19:38
-2
2 upvotes, 4 downvotes (score 9.7%) (You must be signed in to vote)
python bracketed text
Python
why doesn't this match text in brackets?
Submitted by
anonymous
-
9 years ago
2015-01-27 21:53
-2
2 upvotes, 4 downvotes (score 9.7%) (You must be signed in to vote)
Host and domains
Python
no description available
Submitted by
anonymous
-
8 years ago
2015-06-10 18:44
-2
2 upvotes, 4 downvotes (score 9.7%) (You must be signed in to vote)
IPv4
Python
allows for all legal IPv4 addresses
Submitted by
anonymous
-
8 years ago
2015-06-19 13:07
-2
1 upvotes, 3 downvotes (score 4.6%) (You must be signed in to vote)
twitter usernames
Python
no description available
Submitted by
anonymous
-
8 years ago
2015-07-10 11:15
-2
2 upvotes, 4 downvotes (score 9.7%) (You must be signed in to vote)
finds the instance of two or more repeating letters
Python
no description available
Submitted by
cp0153
-
8 years ago
2015-07-10 19:34
-2
0 upvotes, 2 downvotes (score 0%) (You must be signed in to vote)
checklists item
Python
checklists item
Submitted by
Tobias Hochgürtel
-
8 years ago
2015-07-15 13:25
-2
1 upvotes, 3 downvotes (score 4.6%) (You must be signed in to vote)
filter
Python
no description available
Submitted by
anonymous
-
8 years ago
2015-07-18 07:55
-2
0 upvotes, 2 downvotes (score 0%) (You must be signed in to vote)
Validation of code ATECO Italian
Python
/* -- This is a RegEx for validating one Italian ATECO code. -- For original specification visit: http://www.istat.it/it/archivio/17888 -- Valid: */ 1...
Submitted by
Marco Tonchella with the help of this Comunity that thanks a lot.
-
8 years ago
2015-08-19 12:09
-2
1 upvotes, 3 downvotes (score 4.6%) (You must be signed in to vote)
Prosed OFX DateTimeType pattern for v.2.1.1+
Python
no description available
Submitted by
Oleg Sakharov karpuscul@gmail.com
-
8 years ago
2015-09-06 02:10
1
2
3
4
...
216
UFUNCTION parser
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Regular Expression
PCRE2 (PHP >=7.3)
/
[
\s
]
*
(
[
\/
+
\s\w
@'
\,\.
()
\-\*\-\>\<\_\"
]
*
)?
[
\n
]
*
UFUNCTION
[
(
]
(
[
\w
<>
\s
\(\)\=\,\"\|
]
*
|
\n
]
*
)
[
\)
]
\n\s
(
virtual
)*
\s
*
(
static
)*
\s
*
(
\w
+
\&
?
\*
?
)
\s
(
\w
+
)
[
(
]
(
[
\w
<>
\s
,&
\*
]
*
|
\n
]
*
)
[
)
]
[
\s
]
*
(
[
const
]
*
)
/
gm
Open regex in editor
Description
Loading markdown...
Submitted by
anonymous
-
6 months ago
2023-05-21 08:05