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
All Strings for same-lines, Syntax or Parsing
PCRE2 (PHP >=7.3)
All Strings on One Line Php java javascript python escapes all regex...
Submitted by
kai gouthro
-
a year ago
(Last modified a year ago)
2
regex data e time
ECMAScript (JavaScript)
pega a data e time
Submitted by
jaffar
-
a year ago
0
Nginx parse error log msg
Python
Regex to parse nginx error logs, that can't be converted to json in nginx. To use with fluentbit update group labels from "?P" to "?"
Submitted by
diepes
-
a year ago
0
NLP_Regex
Python
Learning Regex for NLP
Submitted by
anonymous
-
a year ago
0
international telephone number incl. european notation
PCRE2 (PHP >=7.3)
international telephone number incl. european notation
Submitted by
Florian Ledeboer
-
a year ago
0
Валидность телефона Российской Федерации форматов "+7", "7", "8"
ECMAScript (JavaScript)
Работает с форм атами +7, 7, 8 Варианты валидации любые.
Submitted by
anonymous
-
a year ago
0
request_uri_no_qs
PCRE2 (PHP >=7.3)
Regular expression used to get the encoded URI portion of the $request_uri when unencoded $uri breaks a reverse proxy. map $request_uri $request_uri_no_qs { "~^(?+)\?(?:.*)?" $m; default $request_uri; } `
Submitted by
jpatton@gmail.com
-
a year ago
0
Regex para Logs de Kiwi Log Forwarder
Python
Los logs de Kiwi Log Forwarder no se guardan de manera correcta como un CSV, por lo que tengo la idea de con una regex vaciarlos a un CSV bien hecho para poder tener mejor visualización de estos
Submitted by
anonymous
-
a year ago
1
in-addr.arpa to IPv4
PCRE2 (PHP >=7.3)
Converts in-addr.arpa hostnames to IPv4 e.g. 1.0.0.127.in-addr.arpa to 127.0.0.1
Submitted by
BitesizedLion
-
a year ago
0
MTN Momo Infos
Python
A regex to extract meaningful infos from a Momo message (mobile money) which is recurrent in Africa.
Submitted by
Hans T.
-
a year ago
0
Match Australian Adresses
PCRE2 (PHP >=7.3)
This Regex Matches Australian Adresses
Submitted by
anonymous
-
a year ago
0
Catch packages from 'tdnf list' output
Golang
Every valid line will be of the form: . . . NOTE: the distribution tag is expected to start with at least one letter and be followed by at least one digit.
Submitted by
anonymous
-
a year ago
0
Camel-Case Splitter (preserves Acronyms)
.NET 7.0 (C#)
Splits camel-case string and preserves acronyms
Submitted by
Tyler S.
-
a year ago
0
Page X of X
Python
Only matches patterns like "Page 1 of 1", "Page 2 of 2", "Page 3 of 3", "Page 4 of 4", "Page 106 of 106", etc. Only works when page numbers in the string are the same.
Submitted by
anonymous
-
a year ago
0
Find last word and space of string
ECMAScript (JavaScript)
Foo Bar
Submitted by
anonymous
-
a year ago
(Last modified a year ago)
0
Extracting data from Authorization header
PCRE2 (PHP >=7.3)
Handful regex for parsing Authorization, WWW-Authenticate etc. headers
Submitted by
Alex Furnica
-
2 years ago
0
minecraft commands. mcfunction syntax commands detection.
PCRE2 (PHP >=7.3)
finds every command in 1st group and subcommands in 2nd group. excludes every comments, and matches command even if it has spaces in the beginning. This exact regex is used for datapackhub.net datapack mcfunction downgrader.
Submitted by
anonymous
-
2 years ago
2
URI Parser
ECMAScript (JavaScript)
A simple parser to exact all the components of a URI/URL as named groups
Submitted by
Vespion
-
2 years ago
(Last modified a year ago)
1
Extract form HTML in Make (Integromat)
ECMAScript (JavaScript)
In Make (Integromat) I want to extra data in email formated in HTML I need to extract : The value for First Name, Last Name, Adresse, Zip code, City
Submitted by
anonymous
-
2 years ago
2
Discord Username (old & new)
PCRE2 (PHP >=7.3)
Accomodate for Discord's username changeover and match against either the old username or the new username. But only one or the other. Match: CesarHvl#9000 cesarhvl cesar.hvl...
Submitted by
cesarhvl
-
2 years ago
1
...
48
49
50
51
52
...
902
Community Library Entry
0
Regular Expression
PCRE2 (PHP >=7.3)
/
(?:
\"
(?:
(?<=
\"
(?=
[^
\n
]
)
)
[^
\n
]
+
?
(?=
(?<!
\\
)
)
(?=
\"
)
)?
\"
)
|
(
\B
'
(?:
(?<=
'
(?=
[^
\n
]
)
)
[^
\n
]
+
?
(?=
(?<!
\\
)
)
(?=
'
)
)?
'
)
/
gm
Open regex in editor
Description
All Strings on One Line
Php
java
javascript
python
escapes all regex
sq inside dq pair
dq insside sq pair
Submitted by
kai gouthro
-
a year ago
(Last modified a year ago)