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...
2
File filtering by extension
PCRE (PHP <7.3)
You would like to scan a folder containing many files (Example : *.pb, *.pbi, *.pbp and *.pbf) and you are interested only by two type of files (example : *.pb and *.pbi). This expression will match only if extension match (in this case *.pb and *.pbi) otherwise no reaction. Feel free to change file...
Submitted by
StarBootics
-
10 years ago
0
test
Python
test
Submitted by
boag
-
10 years ago
1
MySQLcase
Python
make sure mysql tables have the correct form
Submitted by
d
-
10 years ago
1
How to get various values within a pipe delimited string
PCRE (PHP <7.3)
We have a pipe delimited text file and each new record is separated by a CRLF. Each record has a fixed number of pipes, but not every column or field is valued, so there may be 2 or more pipes together. Is there a way to write a regex to parse out the third or fifth value? Many thanks in advance.
Submitted by
Jon
-
10 years ago
1
Chords
ECMAScript (JavaScript)
Expression to match a large amount of possible musical chords. From what I understand from musicians, the number of chords is basically infinite, but you will still find a certain scope being used freuently.
Submitted by
A=B
-
10 years ago
-2
Match website - http:|https://i.imgur.com
ECMAScript (JavaScript)
no description available
Submitted by
ghrifter
-
10 years ago
-2
Match Content-Range response header
ECMAScript (JavaScript)
Matches the Content-Range response header format -[end]/[total|*]
Submitted by
mdezem
-
10 years ago
1
phanindra.vaga.ranama
Python
sdf
Submitted by
asdf
-
10 years ago
2
Extract info from anime filename
ECMAScript (JavaScript)
no description available
Submitted by
Haellsigh
-
10 years ago
1
Repeating Group
PCRE (PHP <7.3)
There are 2 segments within this data that start with REF* and end with a tilde (~). I can capture one of them but not both. I've read and cant seem to figure this one out. I DO need to preface with the NM1*03 piece.
Submitted by
Chris.
-
10 years ago
1
Parsing the response of an oauth provider for token and session
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
10 years ago
1
dropping first digit (2) andy advice?
PCRE (PHP <7.3)
\_\d(.+) for _2015041122
Submitted by
jbt
-
10 years ago
2
Gentoo atom parsing
PCRE (PHP <7.3)
no description available
Submitted by
selurvedu
-
10 years ago
1
list of comma separated dates in the form dd/mm/yyy
PCRE (PHP <7.3)
matches a list of comma separated dates in the form dd/mm/yyy. Between two dates must be only a comma. no other character are permitted: matches: 12/03/2011,23/19/1967 Doesn't match: 23/02/2010, 11/11/2011
Submitted by
reario
-
10 years ago
1
test
PCRE (PHP <7.3)
test
Submitted by
test
-
10 years ago
0
Matching lines that starts with -
PCRE (PHP <7.3)
It may be useful inorder to replace those lines with li
Submitted by
Said Bakr
-
10 years ago
2
suricata OSSIM regex-1
Python
no description available
Submitted by
anonymous
-
10 years ago
1
url
ECMAScript (JavaScript)
no description available
Submitted by
anonymous
-
10 years ago
1
Get value from string
ECMAScript (JavaScript)
Used to get a value from a class e.g.: [...] class="font-12"[...] This regEx will receive "12" given the content of the class
Submitted by
Gabriel R. Sezefredo
-
9 years ago
0
Any mail address
PCRE (PHP <7.3)
Any mail address
Submitted by
Himalay
-
9 years ago
1
...
45
46
47
48
49
...
901
Community Library Entry
0
Regular Expression
PCRE (PHP <7.3)
/
(?i)(?m)
(?<!
[
a
-
z
]
|
\.
|
\.
\d
)
(?:
\d
{1,4}
)
(?:
[
.,
\s
]
\d
{3}
)*
(?:
[
.,
]
\d
{2}
)
(?!
\%
|
\d
|
\.
|
\s
\.
|
\s
cm
|
cm
|
pol
|
\s
pol
)
/
g
Open regex in editor
Description
Encontra qualquer preço presente num documento.
Submitted by
anonymous
-
7 years ago