Please enable JavaScript to use this web application.
Regular
Expressions
101
Social
Donate
Info
Regex Editor
Community Patterns
Account
Regex Quiz
Settings
Order By
Most Recent
Most upvotes
Most downvotes
Highest Score
Lowest Score
Filter by Flavor
PCRE2 (PHP >=7.3)
PCRE (PHP <7.3)
ECMAScript (JavaScript)
Python
Golang
Java 8
.NET 7.0 (C#)
Rust
Sponsors
There are currently no sponsors.
Become a sponsor today!
Community Patterns
Search among 18,040 community submitted regex patterns...
1
extract JavaScript function name
ECMAScript (JavaScript)
Extracts the name of the outer function. Useful to get the name of a function reference using fn.toString().
Submitted by
Jack A.
-
10 years ago
-1
for checking code number 1111/111111111
Python
no description available
Submitted by
dejv
-
10 years ago
1
Captures entire log line that meet the criteria
Python
If you need to grab an entire log line based on criteria (error,warning,notice,info,debug), use this Regexp and change the parameters accordingly.
Submitted by
Neill Lima
-
10 years ago
1
this
Python
stinks
Submitted by
anonymous
-
10 years ago
1
Replace Commas Inside Quotes
PCRE (PHP <7.3)
Regex to remove commas within quotes. (Common situtaion in .csv files) Eg: data,"some ""embedded"" stuff,commas,inside,quotes",more Replace String would be something like this:...
Submitted by
Judd
-
10 years ago
1
regular expression - with space
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
10 years ago
0
Number matching RE
ECMAScript (JavaScript)
Optional plus or minus sign. Leading zero required for decimal number less than zero.
Submitted by
Mario Diana
-
10 years ago
1
Trim
PCRE (PHP <7.3)
Popular trim Regular Expression. Matches whitespace characters at the beginning and end of a string. Check out the usage examples in the test string to see how you can implement it into your own code.
Submitted by
Shawn G.
-
10 years ago
1
Match Ice Faces Empty RTF
PCRE (PHP <7.3)
Will match any empty or containing whitespace only Ice Faces Rich Text Input element.
Submitted by
Sam Blumire
-
10 years ago
1
Recursive Search
PCRE (PHP <7.3)
Proof of concept to omit restriction with '' http://stackoverflow.com/questions/15584634/about-php-regexp-for-recursive-pattern?answertab=oldest#tab-top http://stackoverflow.com/questions/25408579/regex-to-match-blocks-inside-blocks
Submitted by
themroc
-
10 years ago
0
phone matcher
PCRE (PHP <7.3)
phone matcher for following formats (123).234.4567 (123)-234-4567 (617) 495-1797 (617) 495 1797 (617) 4951797...
Submitted by
anonymous
-
10 years ago
1
C# Regex Class acts odd
PCRE (PHP <7.3)
Based on my understanding of Regex, the string “10†matches the Regex “^([0-9])(\\)$â€. To validate it, I tried the regex and the text “10†on the website and it worked. But when I tried the same with C# code, it failed.Only by adding a "?", making the regex “^([0-9])(\\)?$†makes the...
Submitted by
anonymous
-
10 years ago
2
Parse keywords from search string
PCRE (PHP <7.3)
no description available
Submitted by
@bananascript
-
10 years ago
0
html text grep
PCRE (PHP <7.3)
no description available
Submitted by
Cyrbil
-
10 years ago
2
parse images
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
10 years ago
1
t
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
10 years ago
0
Parse JSON key value pair
PCRE (PHP <7.3)
no description available
Submitted by
Kostas Trichas
-
10 years ago
1
Double dollar delimited centred LaTeX equation
Python
Find all instances of a double dollar delimited centred LaTeX equation, for use with e.g. KaTeX
Submitted by
drewsberry
-
10 years ago
1
DNS SOA
PCRE (PHP <7.3)
oneliner SOA record matching regexp. like "ns1.domain.com.ge. mail.ns1.domain.com.ge. (2014061613 3600 600 604800 1800 )" without @ IN SOA in begging, usefull when implementing something like DNS GUI.
Submitted by
Nick Chkhikvishvili
-
10 years ago
-1
regex test
PCRE (PHP <7.3)
testing the string abc xyx 12 13 a a b
Submitted by
Alien Coders
-
10 years ago
(Last modified a year ago)
1
...
39
40
41
42
43
...
902
Community Library Entry
1
Regular Expression
PCRE2 (PHP >=7.3)
/
(?<phone>
(
\+
?
\d
{1,4}
?
[
-.
\s
]
?
)?
(
\(
\d
{1,4}
?
\)
)?
[
-.
\s
]
?
\d
{1,4}
[
-.
\s
]
?
\d
{1,4}
[
-.
\s
]
?
\d
{1,9}
)
|
(?<email>
[
\w
\-
]
[
\w
\-\.
]
+
@
[
\w
\-
]
[
\w
\-\.
]
+
[
a
-
zA
-
Z
]
{1,4}
)
/
gi
Open regex in editor
Description
Extract the phone numbers and email addresses from a string
Submitted by
Mukesh Jangid
-
a year ago