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
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 7.0 (C#)
Rust
Sponsors
There are currently no sponsors.
Become a sponsor today!
Community Patterns
Search among 14,000 community submitted regex patterns...
1
Match all PHP function or method calls including inside the opening and closing curly braces/brackets
PCRE2 (PHP >=7.3)
Capture PHP Function/Class Methods Use regular expression to capture the whole method/function. Parse static PHP code for functions and class methods. Useful for getting tokens and possibly use to generate a Call-Graph for debugging.
Submitted by
chipgraphics#gmail.com
-
9 days ago
1
Tac Tac Tic
PCRE2 (PHP >=7.3)
Only accepts a new `tic if there are two tac` before it.
Submitted by
@roshankumar350
-
7 days ago
1
Find image html tags without alternative text
PCRE2 (PHP >=7.3)
This regex finds images html tags without alternative text
Submitted by
anonymous
-
6 days ago
1
Malaysian Patronymic Separator
PCRE2 (PHP >=7.3)
This regular expression matches patronymic separators commonly used in Malaysian names such as: Bin Binti A/L or A\L A/P or A\P ...
Submitted by
alzhahir
-
5 days ago
1
haha regex
PCRE2 (PHP >=7.3)
haha funny regex min 3 char
Submitted by
Mehmet Kozan
-
4 days ago
(Last modified 3 days ago)
1
unicode
PCRE2 (PHP >=7.3)
uncode word boundaries
Submitted by
Mehmet Kozan
-
4 days ago
1
.
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
11 years ago
1
Match US Currency Amount
PCRE (PHP <7.3)
Group 1 has dollar amount with or without commas, Group 4 has optional cents.
Submitted by
anonymous
-
10 years ago
1
erferf
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
10 years ago
1
match hyphen between quotes
PCRE (PHP <7.3)
no description available
Submitted by
cetanu
-
10 years ago
1
Find common version names in filenames
PCRE (PHP <7.3)
no description available
Submitted by
Jared
-
10 years ago
1
Replaces odd number of quotes with even number of quotes.
PCRE (PHP <7.3)
no description available
Submitted by
ingredient_15939
-
10 years ago
1
Divisible by 3 numbers
PCRE (PHP <7.3)
no description available
Submitted by
Oleksandr Sochka
-
10 years ago
1
parse SQL statements and get values
PCRE (PHP <7.3)
but it does not work. How do I make it work? It will be used in C#
Submitted by
anonymous
-
10 years ago
1
css all comments
PCRE (PHP <7.3)
no description available
Submitted by
Mitus M.
-
10 years ago
1
select stuff of </a> [beta]
PCRE (PHP <7.3)
no description available
Submitted by
Kerosene
-
10 years ago
1
CEF Pipe and Space Delimited Data
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
10 years ago
1
Facebook Video ID from link
PCRE (PHP <7.3)
Matches the video id in FB links
Submitted by
Eirenaios
-
10 years ago
1
price selector
PCRE (PHP <7.3)
Matches any of the prices in the text below: Im asking $15,500 OBO Im asking 15,400$ Im asking 15400$ Im asking $15400 Im asking 15 400$...
Submitted by
chocksy
-
10 years ago
1
I need to escape " in json, issue: if they are already escaped
PCRE (PHP <7.3)
I'm having issues escaping quotes inside json content. I can get the \" to be put in if " is seen, the issue is I don't want that to be done if \" is in the content (as that is already escaped)
Submitted by
Patrick
-
10 years ago
1
...
653
654
655
656
657
...
700
4 Groups from JSON
0
Regular Expression
PCRE2 (PHP >=7.3)
/
"Title":"
(?<Title>
.
*
?
)
"
.
"Department":"
(?<Department>
.
*
?
)
"
.
"Name":"
(?<Name>
.
*
?
)
"
.
"Phone":"
(?<Phone>
.
*
?
)
"
/
gm
Open regex in editor
Description
4 Groups from JSON
Submitted by
Erik Leiren
-
2 years ago