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
None
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
10 years ago
0
Regex Pattern for Mexico Phone Number using Groups
PCRE (PHP <7.3)
Can anyone help me format the following regex for Mexico Phone Numbers. I have two issues, the Regular Expression builder is telling me my Grouping is invalid and also I am having trouble with the 52 pattern. I want it to allow any two digits such as [0-9]{2} example: 52-555-786-2300 (\\+?1[\\s\...
Submitted by
kingpoop
-
10 years ago
0
Password strength check
PCRE (PHP <7.3)
Checks password for following attributes: At least 2 uppercase letters At least 2 lowercase letters At least 2 numbers At least 2 non-alphanumeric characters ...
Submitted by
Visigral
-
10 years ago
0
SickRage
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
10 years ago
0
omit data between single quotes
ECMAScript (JavaScript)
hi, i've been trying for hours to do this, i need to omit all text between single quotes / double quotes can someone help with this
Submitted by
avi.m
-
10 years ago
0
test123
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
10 years ago
0
soap envelope regexp
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
10 years ago
0
Find CSS Class with ability to replace
ECMAScript (JavaScript)
Changing class names is hard with a large codebase written in multiple languages. Classes can appear in several constructs. This tries to match the various ways a class can be represented in HTML. Plug the RegEx in to Sublime Text 2 using "Find in Files...". When replacing in ST2, change $1 to \1.
Submitted by
Matthew (@sirlancelot)
-
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
0
rr
ECMAScript (JavaScript)
no description available
Submitted by
anonymous
-
10 years ago
0
wildcard url match with url
PCRE (PHP <7.3)
no description available
Submitted by
Ahosan Karim Asik
-
10 years ago
0
replace all script sources
PCRE (PHP <7.3)
no description available
Submitted by
A. K. Asik
-
10 years ago
0
xml encoding detection
PCRE (PHP <7.3)
xml encoding detection encoding=(\"\S+")
Submitted by
anonymous
-
10 years ago
0
Regex Mobile Number Validation Code
PCRE (PHP <7.3)
no description available
Submitted by
A.K. Asik
-
10 years ago
0
IPv4 private network address
PCRE (PHP <7.3)
Check if the given string is a private address
Submitted by
Loïc Rameau
-
10 years ago
0
Search string parser (PHP).
PCRE (PHP <7.3)
A simple regexp to parse a search string. It will split the search string into an array of search terms. Each search term will be represented by an array containing 3 strings: ...
Submitted by
@bananascript
-
10 years ago
0
Telephone Number Simple
ECMAScript (JavaScript)
no description available
Submitted by
Nemesarial
-
10 years ago
0
first num after rgb
ECMAScript (JavaScript)
no description available
Submitted by
anonymous
-
10 years ago
0
http
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
10 years ago
0
Select id's in a HTML
PCRE (PHP <7.3)
This regexp was created to search all the id's in a HTML with the objective to clean the code and delete them.
Submitted by
Israel Sotomayor
-
10 years ago
1
...
23
24
25
26
27
...
901
Community Library Entry
2
Regular Expression
PCRE (PHP <7.3)
/
(?:
^
|
(?<=
\/
)
)
(?:
[^
\s
.
\/
]
+
|
\.
(?!
\.\/
)
)+
+
\/\.\.\/
/
gmix
Open regex in editor
Description
Example usage: $Path = preg_replace('/(?:^|(?<=/))(?:[^\s./]+|.(?!./))++/..//i', '', $Path);
Submitted by
Mr.Deek & +OnlineCop
-
9 years ago