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,000 community submitted regex patterns...
0
Nth occurrence of word - pull single table out of HTML with a bunch of tables
PCRE (PHP <7.3)
3rd party generated HTML (Purchase Order) was rife with errors, so direct import was impossible. Decided to pull the particular table out of the HTML attachment, and then wrap that as "new" HTML for import into DOMDocument. PHP code: preg_match('/^(?:(?:(?!table).)*table){19}(.+?(?=table))/is', $ra...
Submitted by
Christopher Cilley
-
8 years ago
0
Swift Codes for any country
PCRE (PHP <7.3)
This will work for all swift codes, just eliminate the country names you don’t want to search for. The first 8 digits of a swift code determine the bank, the last 3 determine a specific branch. For Example CIBCCATTXXX would CIBC and the XXX is the branch.
Submitted by
anonymous
-
8 years ago
0
match cookie name pattern
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
8 years ago
1
Match Time in either 24Hr or 12Hr format
PCRE (PHP <7.3)
Matches a time in either 25Hr or 12Hr format. Seconds are optional for either format.
Submitted by
anonymous
-
8 years ago
0
cisco_syslog_regex
PCRE (PHP <7.3)
^(+)\s(+)\s(+)\s(+)\s+(?+)\s+\*(?+\:)\s+(+)\s+(+)\s+(+)\s+\%(?+)\s+(?+)\s+(?+\')\s+\w+\s+\w+\:\s+(?+)\s+\w+\s+\w+\:\s+(?+)\s+\w+\s\'\w+\'\s+(?)\w+\s+\'(?+)\s+\w+\s+\'\w+\'\s+\w+\s+\w+\s+\'(?+)\s+\w+
Submitted by
anonymous
-
8 years ago
0
comma's not within quotes
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
8 years ago
0
test regex
ECMAScript (JavaScript)
no description available
Submitted by
anonymous
-
8 years ago
0
URL
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
8 years ago
0
regla redireccion atencion al cliente
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
8 years ago
0
Svn branch from svn look
Python
no description available
Submitted by
anonymous
-
8 years ago
0
Pug variables
PCRE (PHP <7.3)
Change jade "#{variable}" to "" + variable + ""
Submitted by
anonymous
-
8 years ago
0
Frisky radio show parsing pattern
Python
no description available
Submitted by
anonymous
-
8 years ago
0
phpbb smilies
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
8 years ago
0
Parsing of traceroute reporting issue
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
8 years ago
0
cfldap
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
8 years ago
0
Validare CNP Romania Regex
ECMAScript (JavaScript)
This regex is for validating Roumanian CNP ^[1-9]\d{2}(0[1-9]|1[0-2])(0[1-9]|[12]\d|3[01])(0[1-9]|[1-4]\d|5[0-2]|99)(00[1-9]|0[1-9]\d|[1-9]\d\d)\d$
Submitted by
Ionut M. Ionete
-
8 years ago
0
Checking Indonesia Phone
PCRE (PHP <7.3)
Checking first character "+" or "0"
Submitted by
anonymous
-
8 years ago
0
Parse Windows traceroute probes
PCRE (PHP <7.3)
no description available
Submitted by
Luke Murphey
-
8 years ago
0
Check if valid Base64
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
8 years ago
1
Find particular punctuation
ECMAScript (JavaScript)
This regex find punctuation like "!", "!!!", "?", "???", "!?", "!!!???" and unlimited time repeated "!" and "?"
Submitted by
Ivijan-Stefan Stipic
-
8 years ago
1
...
606
607
608
609
610
...
900
Community Library Entry
5
Regular Expression
Python
r"
(
(?!
\[
)
\w
+
(?=
\]
)
)
"
gi
Open regex in editor
Description
Form Tag
Submitted by
Jay Patel
-
9 years ago