Regular
Expressions
101
Please wait while the app is loading...
Please enable JavaScript to use this web application.
Regular
Expressions
101
@regex101
Donate
Sponsor
Contact
Bug Reports & Feedback
Wiki
What's new?
What's new?
Loading content...
Close
Regex Editor
Regex Editor
Regex Library
Regex Library
Account
Account
Regex Quiz
Regex Quiz
Settings
Settings
Live Help
Live Help
Order By
Most Recent
Most Points
Fewest Points
Filter by Flavor
PCRE2
PCRE
ECMAScript
Python
Golang
Java
.NET
Sponsors
All your environment variables, in one place
Library entries
Search library
1
1 upvotes, 0 downvotes (100% like it) (You must be signed in to vote)
pcre
A revised e-mail validation regular expression
This one allows to begin with a digit, however, sometimes e-mail should begin with an *English letter *
Submitted by
anonymous
-
6 years ago
1
1 upvotes, 0 downvotes (100% like it) (You must be signed in to vote)
javascript
Date checker for X values
Work in progress
Submitted by
anonymous
-
6 years ago
1
1 upvotes, 0 downvotes (100% like it) (You must be signed in to vote)
pcre
Youtube ID Extractor
no description available
Submitted by
anonymous
-
6 years ago
1
1 upvotes, 0 downvotes (100% like it) (You must be signed in to vote)
javascript
Phone numbers and/or extensions(relaxed)
Useful for phone number extraction
Submitted by
hslayer
-
6 years ago
1
1 upvotes, 0 downvotes (100% like it) (You must be signed in to vote)
pcre
Localhost/private ip origin check
Used by CORS to check for localhost/private IP origins Check out the unit tests at /r/2Ofume/1/tests
Submitted by
ngokimphu
-
6 years ago
1
1 upvotes, 0 downvotes (100% like it) (You must be signed in to vote)
pcre
Formatar CPF
Retorna um cpf no formato 123.456.789-11. Cpf de entrada deve conter apenas números
Submitted by
anonymous
-
6 years ago
1
1 upvotes, 0 downvotes (100% like it) (You must be signed in to vote)
pcre
Matching email addresses per RFC5322
The BNF rules from RFC 5322 transformed to PCRE by Nikita Popov and described in the post http://nikic.github.io/2012/06/15/The-true-power-of-regular-expressions.html.
Submitted by
Michael Musson
-
6 years ago
1
1 upvotes, 0 downvotes (100% like it) (You must be signed in to vote)
pcre
Word Wrap examples
Four examples of word wrapping at the 80 character mark, each one taking fewer steps than the last. Comment and uncomment lines with # to see the difference between versions. Optimization discussions welcome!
Submitted by
OnlineCop
-
6 years ago
1
1 upvotes, 0 downvotes (100% like it) (You must be signed in to vote)
pcre
Matching an Saudi Postal Code
Saudi Postal Code has five digits, if you would to have more information check the below: +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ First Digit (Postal Regions): "The postal region number is represented by the first digit of the postal code" ...
Submitted by
Fares Alarabi
-
6 years ago
1
1 upvotes, 0 downvotes (100% like it) (You must be signed in to vote)
pcre
Email matching with a grain of salt
Inspired by Micheal Musson entry Wich was hard to use in regex flavours that don't support recursion (C# engine doesn't) i've build my own simpler version wich matches what i would accept as validation entry
Submitted by
Luigi Trabacchin
-
6 years ago
1
1 upvotes, 0 downvotes (100% like it) (You must be signed in to vote)
python
Basic DOI
no description available
Submitted by
anonymous
-
6 years ago
1
1 upvotes, 0 downvotes (100% like it) (You must be signed in to vote)
pcre
Contraseña Fuerte
Valida que la contraseña deba estar compuesta por una mayúscula, minúscula y números con un rango de caracteres desde 8 hasta 16 dígitos. Ejemplo Aropd123 Argpd 123
Submitted by
Nelson Wandurraga
-
6 years ago
1
1 upvotes, 0 downvotes (100% like it) (You must be signed in to vote)
pcre
Unix ANSI escape codes
Unix ANSI escape codes Hi , in my Terminal project in want a method to find (Unix ANSI escape codes) and run its command. For More information : https://en.wikipedia.org/wiki/ANSI_escape_code...
Submitted by
Shahin Pendar , shahinpendar@gmail.com
-
6 years ago
1
1 upvotes, 0 downvotes (100% like it) (You must be signed in to vote)
pcre
Check list of integers numbers separated by comma
Check list of integers numbers separated by comma Ex: "1, 2, 4, 6" >> OK "99" >> OK "a, b, c" >> WRONG...
Submitted by
anonymous
-
6 years ago
1
1 upvotes, 0 downvotes (100% like it) (You must be signed in to vote)
pcre
French Phone Number Validation
Accept several kind of format, more or less usual. And refuse incorrect formats. Prefix: 0033 / +33 / (0) / 0 Number: collapsed / group by 2 / group by 3 Separator: space / dot / dash
Submitted by
RonanKER
-
6 years ago
1
1 upvotes, 0 downvotes (100% like it) (You must be signed in to vote)
pcre
Validate and decompose email address (English alphabet compliant)
If you understand the regexp, you can adjust it to your need. restrict special characters to .%_'- (localpart) limit length of each part and the whole to reasonable size supports 'XN' tld If you need help, read http://www.regular-expressions.info/email.html See also https://www.debuggex.com/r/9cdaaw...
Submitted by
RonanKER
-
6 years ago
1
1 upvotes, 0 downvotes (100% like it) (You must be signed in to vote)
pcre
Capture the last space in a line of text with Negative Lookback
Looks for the last single space in a line of text.
Submitted by
anonymous
-
6 years ago
1
1 upvotes, 0 downvotes (100% like it) (You must be signed in to vote)
pcre
Acts
Extract Act names from statements
Submitted by
anonymous
-
6 years ago
1
1 upvotes, 0 downvotes (100% like it) (You must be signed in to vote)
pcre
Euro prices with steps of 5000 (e.g 5.000, 10.000 - 255.000)
To validate a price of 5.000 and steps of 5.000 thereafter. (e.g 5.000, 10.000, 15.000 etc) including a euro sign. If anyone has any improvements let me know, this is what i just came up with to solve a problem i have on WordPress Contact Form 7.
Submitted by
anonymous
-
6 years ago
1
1 upvotes, 0 downvotes (100% like it) (You must be signed in to vote)
pcre
Ansible Rendered Configs from STDOUT
Ansible Rendered Configs from STDOUT
Submitted by
gmaddock
-
6 years ago
1
...
673
674
675
676
677
678
679
...
731
nb - legacy section/subsection finder
Vote
1
1 upvotes, 0 downvotes (100% like it) (You must be signed in to vote)
Regular Expression
pcre
/
(?:
<div
\s
+
class=
.
?
body
\s
*
section
.
?
>
)
\s
*
(?:
<div
\s
+
class=
.
?
body
\s
*
subsection
.
?
>
)
\s
*
(?:
<span
[^
>
]
*
(?:
label
|
bold
)
.
?
>
)+
(
[
\d
.
]
+
)
<
\/
span>
(
\(
[
\d
.
]
+
\)
)
<
\/
span>
/
gm
Open regex in editor
Description
Loading markdown...
Submitted by
anonymous
- 2 years ago