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. Click
here
to read more.
Community Patterns
Search among 12,020 community submitted regex patterns...
1
find digits in float for formatting delimiter position
PCRE (PHP <7.3)
1234567 -> mathces 1 and 4. 1234567.999 -> matches 1 and 4. so you can format it to 1,234,567.999 easily JavaScript:...
Submitted by
Marvin Follmann
-
8 years ago
2
Dir\File.Ext
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
8 years ago
1
Chemstation MS Parsing
PCRE (PHP <7.3)
Parsing of a file created by a Chemstation Instrument
Submitted by
DJ
-
8 years ago
1
test
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
8 years ago
1
SQL LIMIT REMOVE
PCRE (PHP <7.3)
SQL LIMIT REMOVE
Submitted by
Lucas Pinheiro
-
8 years ago
0
Nigerian Phone numbers
PCRE (PHP <7.3)
Regex for validating Nigerian phone numbers using all mobile prefixes in the country
Submitted by
Jubril Edu
-
8 years ago
1
parse nginx log
PCRE (PHP <7.3)
parse nginx log lines into fields
Submitted by
ViKing
-
8 years ago
3
Remove br tags inside anchor tags
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
8 years ago
1
Validation
PCRE (PHP <7.3)
no description available
Submitted by
Robin Venneman
-
8 years ago
1
HL7
PCRE (PHP <7.3)
no description available
Submitted by
Brent
-
8 years ago
2
Email Address Matching
PCRE (PHP <7.3)
Picks out valid email addresses from string.
Submitted by
Rob Lester
-
8 years ago
0
Regx5
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
8 years ago
1
Regx3
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
8 years ago
2
MyFRegex
PCRE (PHP <7.3)
Hi
Submitted by
mymoon
-
8 years ago
1
Catch Directives
PCRE (PHP <7.3)
Catch directive and anything inside {} @widget('x') { test }
Submitted by
John Turingan
-
8 years ago
1
Wikis or Wikipedia
PCRE (PHP <7.3)
Get Wikis or Wikipedia urls. I use it for Stylish extension in Firefox
Submitted by
mlopezcoria
-
8 years ago
0
Facebook Page/Profile. No profile.php. No /groups/
PCRE (PHP <7.3)
Example: http://www.facebook.com/profile.php?id=123456789 http://www.facebook.com/someusername https://www.facebook.com/0x20.be http://www.facebook.com/plugins/likebox.php?href=http%3A%2F%2Fwww.facebook.com%2Fpages%2F2leep%2F109473355777935&width=300&connections=4&stream=false&heade...
Submitted by
aramosf
-
8 years ago
0
positive/negative float/integer
PCRE (PHP <7.3)
matches all positive or negative float or integers
Submitted by
Codeloper
-
8 years ago
0
Command line with escape
PCRE (PHP <7.3)
splits into command arguments: spaces split quotes keep spaced texts together \" escapes the quote
Submitted by
Skycoder42
-
8 years ago
0
Validate Password strength
PCRE (PHP <7.3)
(?=.*[A-Z]) # must contain 1 uppercase letter (?=.*[0-9]) # must contain 1 digit (?!.\n) # must not contain a newline character (?!.*\s) # must not contain any whitespace characters (?=.*[!$#+@%&]) # nust contain one of these symbols .{8,} # match a...
Submitted by
anonymous
-
8 years ago
1
...
506
507
508
509
510
...
601
MySQL PHP connection string
1
Regular Expression
PCRE (PHP <7.3)
/
(?=
.
*
dbname=
(
.
*
)
(?:
;
|
$
)
)
(?=
.
*
host=
(
.
*
)
(?:
;
|
$
)
)
/
U
Open regex in editor
Description
Capture dbname and host from MySQL PHP connection string
Submitted by
anonymous
-
9 years ago