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,280 community submitted regex patterns...
0
Reg Exp to Remove all special Characters
PCRE (PHP <7.3)
This regular expression removes all special characters including whitespaces which are allowed in windows path name, file name and folder name.
Submitted by
Anirudh
-
8 years ago
0
File path seperator
PCRE (PHP <7.3)
Seperate any file from it's path and trim extention, creating two groups
Submitted by
Edward Aryee
-
8 years ago
0
Substring Matching Word, Hyphen, Underscores and Digits
PCRE (PHP <7.3)
Matches customer portion of call detail records found in the fields dcontext, lastdata, and usefield of an Asterisk CDR table. Additional processing required to get fully clean values.
Submitted by
lindstrom
-
8 years ago
-3
RegEX for account code starting with 000-
PCRE (PHP <7.3)
no description available
Submitted by
Joe H
-
9 years ago
-1
regex on paintkits
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
11 years ago
-1
text beetween text
Python
no description available
Submitted by
karol
-
10 years ago
-2
Match v4 IP address
PCRE (PHP <7.3)
no description available
Submitted by
Budiony Damyanov
-
10 years ago
-2
Sample
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
10 years ago
-2
Between two strings
Python
Awesome explanation of nested lookbacks
Submitted by
OnlineCop
-
9 years ago
-3
Latitude/longitude tester
PCRE (PHP <7.3)
Tests the string if it does contain valid latitude and longitude parameters
Submitted by
Doro
-
10 years ago
-3
mail
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
10 years ago
-3
Matches percentage with any number of digits
Python
Only captures value for converting percentage to decimal. Returns empty if percentage but no value. no match = no percentage found
Submitted by
sharkey
-
9 years ago
-3
FQDN Fully Qualified Domain Name
PCRE (PHP <7.3)
no description available
Submitted by
Rafael Justo and Mauro Trajber
-
9 years ago
0
decimal numbers
PCRE (PHP <7.3)
match decimal numbers with sign
Submitted by
mariano_dm
-
11 years ago
0
Match all parts of the valid JSON
PCRE (PHP <7.3)
Originally written by Pumbaa80, but slightly adjusted: http://stackoverflow.com/questions/4810841/how-can-i-pretty-print-json-using-javascript
Submitted by
Pumbaa80
-
10 years ago
0
SFTP with username and optional port & password
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
10 years ago
0
Any Character Between 6-64 Long
PCRE (PHP <7.3)
Allowing for complex passwords
Submitted by
anonymous
-
10 years ago
0
Replace one or more 'br' tags with a single space.
PCRE (PHP <7.3)
no description available
Submitted by
James Furey
-
10 years ago
0
Page Hangs in Chrome/Shows TIMEOUT on regex101.com
PCRE (PHP <7.3)
I have a regex like this: /^(A-Za-z0-9)([\.\_]?[A-Za-z0-9-]+)(\.[A-Za-z]{2,6})+(\/A-Za-z+)*$/ and I want to test the string like: webmail.google.com.qqqqqqqqqqqqqqqqqqq....... But it shows TIMEOUT. I know that string is invalid for given regex. But I do this because when I input this string and ma...
Submitted by
sam
-
10 years ago
0
Get all header tag (<hn>) in html file
PCRE (PHP <7.3)
This regex get all header tag in html file with tag included
Submitted by
Aubin
-
10 years ago
1
...
464
465
466
467
468
...
714
Alternative With Capture Groups
-1
Regular Expression
Python
r"
(
\s
*
-en
)
$
|
(
\s
*
-en-us
)
$
|
(
\s
*
-us
)
$
"
Open regex in editor
Description
Capture alternative items matching end of lines country codes
Submitted by
Branden
-
10 years ago