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,040 community submitted regex patterns...
0
only .ts .tsx .js .jsx
ECMAScript (JavaScript)
get files extension
Submitted by
HZ
-
3 years ago
0
selecting a tag and the text inside it
ECMAScript (JavaScript)
The regular expression separates the beginning and end of the tag, as well as everything between them into separate groups.
Submitted by
anonymous
-
3 years ago
(Last modified 3 years ago)
0
Find string a string not withing quote
PCRE2 (PHP >=7.3)
Find string a string not withing quote
Submitted by
anonymous
-
3 years ago
0
replace text in tag
ECMAScript (JavaScript)
find and replace text in tag
Submitted by
anonymous
-
3 years ago
0
Comprobar fecha
ECMAScript (JavaScript)
^(?:3[01]|12|0?[1-9])([\-/.])(0?[1-9]|1[1-2])\1\d{4}$
Submitted by
anonymous
-
3 years ago
0
Phone number
PCRE2 (PHP >=7.3)
Improvement of the Phone Number regex pattern created by 'elishas@syncode.io'
Submitted by
anonymous
-
3 years ago
0
Notepad++_command_IDs
PCRE2 (PHP >=7.3)
I'm trying to arrange and manipulate Notepad++ icons and make some scripts, so, after generating the list from the MenuIcons plugin, I used this RegEx to make a list with the container (folder/subfolder, the ones that have a -1 command ID) and indent all the items it contains (I'm using Python for m...
Submitted by
Me, myself and I (with the help from the Menu Icons plugin)
-
3 years ago
0
Php
PCRE2 (PHP >=7.3)
Php
Submitted by
Nickname
-
3 years ago
0
CDATA Matcher
Java 8
Matches CDATA sections while disallowing nesting
Submitted by
anonymous
-
3 years ago
0
track OM cash out
PCRE2 (PHP >=7.3)
cash out tracker
Submitted by
anonymous
-
3 years ago
0
UA phone number
ECMAScript (JavaScript)
check ua phone number
Submitted by
anonymous
-
3 years ago
(Last modified 3 years ago)
0
regex expression to DateTime checking in YYYY-MM-DDTHH:MM:SS[+/-]HH:SS
Python
/(^((\d{4}-(((0[13578]|1)-(0[1-9]|[1-2]\d|3[01]))))|((\d{4}-(((0[469]|1)-(0[1-9]|[1-2]\d|3)))))|((\d{4}-(0[2]-(0[1-9]|[1-2]\d)))))T(([01]\d|2[0-3]):([0-5]\d):([0-5]\d))?(+-\d:[0-5]\d)$)/gm
Submitted by
anonymous
-
3 years ago
(Last modified a year ago)
0
FIrst or Last Name
ECMAScript (JavaScript)
Validates a first or last name of an user. Positives: Anna Anna-Louisa Anna Louisa...
Submitted by
Iris
-
3 years ago
0
.csv data conversion for a test case
PCRE2 (PHP >=7.3)
from "['a']" to "[""a""]"
Submitted by
anonymous
-
3 years ago
0
Mikrotik Regex Firewall Log Golang
Golang
Regex para uso com Grafana Loki Log feito via Mangle, com prefix $user do freeradius.
Submitted by
Vitor Abbade
-
3 years ago
0
JavaScript Function w/ Recusive Parenthasis JavaScript Function w/ Recusive Parenthasis JavaScript Function w/ Recusive Parenthasis
PCRE2 (PHP >=7.3)
Regex that allows the following: foo(bar).qax(foo(bar).qax(foo(bar).qax(foo(bar).qax()))) Its sorta hard to make out whats going on, so I will just say it: ...
Submitted by
jD3V
-
3 years ago
0
Jerem
PCRE2 (PHP >=7.3)
To match specific name based on season code
Submitted by
anonymous
-
3 years ago
0
markdown headings with underscore
PCRE2 (PHP >=7.3)
it still makes a few false positives
Submitted by
charliecalvert
-
3 years ago
0
Url handling
Python
Simple regex to split url
Submitted by
Hangfish
-
3 years ago
0
Replace anything not a letter or a hyphen
PCRE2 (PHP >=7.3)
Make folder/url safe use with eg sed: echo 'My fancy $thing' | sed 's//-/g' results in My-fancy--thing
Submitted by
anonymous
-
3 years ago
1
...
436
437
438
439
440
...
902
Community Library Entry
0
Regular Expression
PCRE (PHP <7.3)
/
^
(
(
\*
(
\/
[
0
-
9
]
+
)?
)
|
[
0
-
9
\-\,\/
]
+
)
\s
+
(
(
\*
(
\/
[
0
-
9
]
+
)?
)
|
[
0
-
9
\-\,\/
]
+
)
\s
+
(
(
\*
(
\/
[
0
-
9
]
+
)?
)
|
[
0
-
9
\-\,\/
]
+
)
\s
+
(
(
\*
(
\/
[
0
-
9
]
+
)?
)
|
[
0
-
9
\-\,\/
]
+
)
\s
+
(
(
\*
(
\/
[
0
-
9
]
+
)?
)
|
[
0
-
9
\-\,\/
]
+
)
\s
+
(
(
\*
(
\/
[
0
-
9
]
+
)?
)
|
[
0
-
9
\-\,\/
]
+
)
$
/
gi
Open regex in editor
Description
parse crontab
Submitted by
anonymous
-
7 years ago