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 3,060 community submitted regex patterns...
1
iCal
PCRE2 (PHP >=7.3)
iCal parser
Submitted by
Appenjel
-
2 years ago
1
PowerShell RegEx - Renaming ROM Files in ROMs Directory
PCRE2 (PHP >=7.3)
Renaming ROM Files in ROMs Directory
Submitted by
MrMattiPants
-
2 years ago
1
find text in html
PCRE2 (PHP >=7.3)
for tp
Submitted by
anonymous
-
2 years ago
1
find all url in <a> in html
PCRE2 (PHP >=7.3)
for tp
Submitted by
anonymous
-
2 years ago
1
aadhar number
PCRE2 (PHP >=7.3)
Finds Aadhar number from given string
Submitted by
anonymous
-
2 years ago
1
JavaScript Naming Convention Parser/Validator
PCRE2 (PHP >=7.3)
Surprisingly short regex that matches valid JavaScript identifier names and captures it in a group according common JavaScript naming conventions, e.g: myVariable generic name for most identifiers, uses camelCase MyClass...
Submitted by
Neel Yadav
-
2 years ago
1
Recognize Bosch partnumber
PCRE2 (PHP >=7.3)
partsnumber validate
Submitted by
Digimusen
-
2 years ago
(Last modified 2 years ago)
1
uzbekistan phone regex
PCRE2 (PHP >=7.3)
Uzbekistan phone codes - regex pattern.
Submitted by
Sodikmirzo Sattorov
-
2 years ago
1
Add space after period
PCRE2 (PHP >=7.3)
Add a whitespace after a period if it is followed by a non-whitespace character
Submitted by
blacksmithop
-
2 years ago
1
Get project name from git url
Golang
Used by Zarf to obtain the name of a repository when given a git URL.
Submitted by
Jonathan Perry
-
2 years ago
1
Fix markdown image in header
PCRE2 (PHP >=7.3)
I was converting from markdown to another format & it didn't allow images in headers so this Regex finds an image in a header & moves it before the header.
Submitted by
thefinnomenon
-
2 years ago
1
Password regular expression
PCRE2 (PHP >=7.3)
Password should contain at least 8 symbols, one lower case, one upper case and one number. https://owasp.org/www-community/password-special-characters
Submitted by
Tahiaji
-
2 years ago
1
Chinese Phone Number
PCRE2 (PHP >=7.3)
匹配中国🇨🇳大陆手机号码
Submitted by
Akko
-
2 years ago
1
get-time
PCRE2 (PHP >=7.3)
The get-time regex checks for the time format of a 12-hour clock, as follows: the hour is between 1 and 12, with no leading zero, followed by a colon, then minutes between 00 and 59, then an optional space, and then AM or PM, in upper or lower case
Submitted by
Ahmed Ibrahim
-
2 years ago
1
Filtering Log Files with Regular Expressions
PCRE2 (PHP >=7.3)
We're using the same syslog, and we want to display the date, time, and process id that's inside the square brackets. We can read each line of the syslog and pass the contents to the show_time_of_pid function. Fill in the gaps to extract the date, time, and process id from the passed line, and retur...
Submitted by
anonymous
-
2 years ago
1
Uzbekistan passport regex
PCRE2 (PHP >=7.3)
Uzbekistan passport regex
Submitted by
Elbek Khamdullaev (elbek.me)
-
2 years ago
1
Decimal digit with some text pattern at the end.
PCRE2 (PHP >=7.3)
[0-9]+\.?[0-9,]* ?(?:UI|IU|MCG|G|I.U|I.U.|MG|ML|GM)(?:\/?[0-9]+\.?[0-9]* ?(?:UI|IU|MCG|G|I.U|I.U.|MG|ML|GM))?
Submitted by
anonymous
-
2 years ago
1
Mobile Number (with country code)
PCRE2 (PHP >=7.3)
Basic Regex to validate mobile numbers, with country code
Submitted by
Ashutosh Mishra
-
2 years ago
1
uzbekistan phone number
PCRE2 (PHP >=7.3)
uzbekistan phone number
Submitted by
Elbek Khamdullaev
-
2 years ago
1
match domain, but not www
PCRE2 (PHP >=7.3)
matches domains with or without www, does not include www
Submitted by
anonymous
-
2 years ago
1
...
14
15
16
17
18
...
153
Community Library Entry
0
Regular Expression
.NET 7.0 (C#)
@"
^
(?=
(?<http>
(?:
https
?
:
\/\/
){1}
(?:
www
\.
)?
)?
)
(?
(?=
\k<http>
?
(?<ipaddr>
(?:
\d
{1,3}
\.
){3}
\d
{1,3}
(?:
\:
\d
{1,5}
)?
)
)
\k<http>
?
\k<ipaddr>
(?:
\.
[
\w
]
{1,9}
)?
|
\k<http>
(?:
[
\w
]
\.
?
){1,255}
\.
[
\w
]
{1,9}
)
(?:
\/
.
*
)?
$
"
gm
Open regex in editor
Description
Can be used to validate on URL's.
Submitted by
anonymous
-
2 years ago