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,020 community submitted regex patterns...
0
Trading symbol
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
7 years ago
0
Quote Javascript-style hash to convert to valid JSONP (JSON with padding)
PCRE (PHP <7.3)
Add single quotes to unquoted parts of a valid JS hash so it can be parsed with JSON decoders. Tries to keep boolean and numeric values unquoted Note: It will not handle certain edge-cases You might need to clear the trailing commas
Submitted by
anonymous
-
7 years ago
0
Match double quoted or single quoted multi line string in code.
Python
This will allow for valid string parsing via a regex in popular interpreted languages like Lua, Python and Ruby.
Submitted by
Siddharth Gupta
-
7 years ago
0
斗地主
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
7 years ago
0
DDMMMYY w/Leap Year Check
PCRE (PHP <7.3)
Validate dates in the formats of 1Feb20/01Feb20/29FEB20 with the 29th of February invalid on non-leap years.
Submitted by
anonymous
-
7 years ago
0
UK postcode with spaces optional
PCRE (PHP <7.3)
Sourced from https://assets.publishing.service.gov.uk/government/uploads/system/uploads/attachment_data/file/488478/Bulk_Data_Transfer_-_additional_validation_valid_from_12_November_2015.pdf and modified to allows spaces to be optional
Submitted by
anonymous
-
7 years ago
0
YYYYMMDD w/Leap Year Check
PCRE (PHP <7.3)
Validate dates in the format of 20201231 with leap year check on the 29th of February
Submitted by
anonymous
-
7 years ago
0
DDMMMYYYY w/Leap Year Check
PCRE (PHP <7.3)
Format of 29Feb2020 or 29FEB2020 with leap year check
Submitted by
anonymous
-
7 years ago
0
files containing [rgo1] ending [.html]
ECMAScript (JavaScript)
no description available
Submitted by
anonymous
-
7 years ago
0
step 1 test
PCRE (PHP <7.3)
unit tests
Submitted by
anonymous
-
7 years ago
0
Selectie text intre stringuri
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
7 years ago
0
Extract time from seg filename
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
7 years ago
0
Seg #
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
7 years ago
0
Selectie text intre stringuri
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
7 years ago
0
davekeane select certain and ignore certain characters or words
ECMAScript (JavaScript)
no description available
Submitted by
anonymous
-
7 years ago
0
wtf
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
7 years ago
0
BSOD
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
7 years ago
0
Mixplorer Bookmarks
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
7 years ago
0
MYSQL params
PCRE (PHP <7.3)
Obtains the SQL params
Submitted by
anonymous
-
7 years ago
0
Phone numbers
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
7 years ago
1
...
475
476
477
478
479
...
901
Community Library Entry
0
Regular Expression
ECMAScript (JavaScript)
/
(?<formula>
[
A
-
Za
-
z0
-
9
]
\w
+
)
(?<charge>
[
+-
\s
]
*
)
(
\(
(?<state>
[^
\)
]
*
)
\)
)?
/
g
Open regex in editor
Description
formula
charge
Submitted by
anonymous
-
3 years ago