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
Community Patterns
Search among 13,660 community submitted regex patterns...
0
CIF (Codigo de Indentificación Fiscal) - Spain
PCRE (PHP <7.3)
Spain Format CIF (Codigo de Indentificación Fiscal)
Submitted by
dagope
-
7 years ago
0
Better Decimal Number
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
7 years ago
0
ID at end of string
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
7 years ago
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
-
7 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
-
7 years ago
0
match cookie name pattern
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
7 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
-
7 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
-
7 years ago
0
comma's not within quotes
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
7 years ago
0
URL
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
7 years ago
0
regla redireccion atencion al cliente
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
7 years ago
0
Svn branch from svn look
Python
no description available
Submitted by
anonymous
-
7 years ago
0
Pug variables
PCRE (PHP <7.3)
Change jade "#{variable}" to "" + variable + ""
Submitted by
anonymous
-
7 years ago
0
Frisky radio show parsing pattern
Python
no description available
Submitted by
anonymous
-
7 years ago
0
phpbb smilies
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
7 years ago
0
Parsing of traceroute reporting issue
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
7 years ago
0
cfldap
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
7 years ago
0
Checking Indonesia Phone
PCRE (PHP <7.3)
Checking first character "+" or "0"
Submitted by
anonymous
-
7 years ago
0
Parse Windows traceroute probes
PCRE (PHP <7.3)
no description available
Submitted by
Luke Murphey
-
7 years ago
0
Check if valid Base64
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
7 years ago
1
...
454
455
456
457
458
...
683
RipNameFromEmail
1
Regular Expression
Python
r"
^\s
+
|
\s
*
"
\s
*
|
\s
*
<
.
*
|
\S
+
@
\S
+
|
\s
*
\(
\s
*
|
\s
*
\)
\s
*
"
g
Open regex in editor
Description
handles quotes, non-quotes, angle bracket, parans, and trips extra white spaces
Submitted by
dano
-
8 years ago