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,480 community submitted regex patterns...
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
FN Nword filter
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
4 years ago
2019-05-30 00:44
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Class Find Replace
PCRE (PHP <7.3)
Add frm_form_field class to all classes starting with mphb_sc_search-
Submitted by
anonymous
-
4 years ago
2019-05-30 21:25
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Append class to html element, with exclusions
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
4 years ago
2019-05-30 21:29
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
lib1
Python
import time print(time.time()) import datetime print(datetime.datetime.now()) ...
Submitted by
anonymous
-
4 years ago
2019-05-31 03:24
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Phone number
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
4 years ago
2019-05-31 09:41
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Splitter ES
Golang
no description available
Submitted by
anonymous
-
4 years ago
2019-05-31 10:32
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
IP Address Match
PCRE (PHP <7.3)
Finy any IP address from 0.0.0.0 to 255.255.255.255.
Submitted by
anonymous
-
4 years ago
2019-06-01 13:25
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
First Run
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
4 years ago
2019-06-01 18:00
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
second run
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
4 years ago
2019-06-01 18:02
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Third Run
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
4 years ago
2019-06-01 15:09
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
WindowsUpdate
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
4 years ago
2019-06-01 20:04
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
gfhgh
Python
fghh
Submitted by
anonymous
-
4 years ago
2019-06-02 02:29
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
zxb
Python
zvcxv
Submitted by
anonymous
-
4 years ago
2019-06-02 02:29
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
简单替换
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
4 years ago
2019-06-02 11:41
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
two " to triple
Python
no description available
Submitted by
anonymous
-
4 years ago
2019-06-02 13:14
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Match alpha-numeric with optional special characters and numbers
PCRE (PHP <7.3)
Match strings for alpha-numeric strings with optional special characters and numbers
Submitted by
anonymous
-
4 years ago
2019-06-03 06:32
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
@POLE-EMPLOI.FR
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
4 years ago
2019-06-04 09:32
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
AssetNames
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
4 years ago
2019-06-03 16:38
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Resolution Regex
Python
no description available
Submitted by
anonymous
-
4 years ago
2019-06-04 07:51
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
CD45 (creation)
PCRE (PHP <7.3)
Ajout du controle Intervention
Submitted by
anonymous
-
4 years ago
2019-07-31 15:16
1
...
452
453
454
455
456
457
458
...
574
Regex
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
Regular Expression
PCRE (PHP <7.3)
/
(?:
\b
function
\s
+
(
\w
+
)
\(
[^
()
]
*
\)
\s
*
\{
|
(?!
^\G
)
)
(?:
(?!
\b
function
\s
+
\w
+
\(
[^
()
]
*
\)
\s
+
{
|
}
\h
*
\r
?
\n
)
.
)*
?
\$
body
\s
*
->
\s
*
(
\w
+
)
|
function
\s
*
(
.
+
?
)
\(
/
sg
Open regex in editor
Description
Loading markdown...
Submitted by
karan
-
8 years ago
2016-02-17 11:18