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
Floating Point number verifier and extractor with scientific notation support
The regex verifies floating point numbers in decimal or scientific notation with extensive error checking - however, there may be edge cases which i haven't addressed, so feel free to put in more unit tests!
Submitted by
Tamoghna Chowdhury
-
6 years ago
1
1 upvotes, 0 downvotes (100% like it) (You must be signed in to vote)
pcre
RFC-1034- and RFC-2181-compliant FQDN extractor
The specification for this regex is based upon the extracts from RFC 1034 and RFC 2181 below. It is also assumed that you are trying to extract the FQDN from a pipe-delimited string. If this is not the case then you will need to adjust the regex as necessary by either removing the pipe character o...
Submitted by
0jag
-
6 years ago
1
1 upvotes, 0 downvotes (100% like it) (You must be signed in to vote)
pcre
Extract the only the Nth field from a delimited string
The aim of this regex is to extract only the Nth field from a delimited string. In the example provided the delimited is the pipe character. You will have to substitute the pipe character for whatever delimiter you are using.
Submitted by
0jag
-
6 years ago
1
1 upvotes, 0 downvotes (100% like it) (You must be signed in to vote)
pcre
Remove Markdown Links
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
Make PHP var_dump() output more compact
The PHP function var_dump() provides debugging output, but has more line-breaks than is needed for readability. This regex strips out the (in my eyes) unnecessary line-breaks. Good in a self written debugging method in combination with ob_start()and ob_get_contents().
Submitted by
Doqnach
-
6 years ago
1
1 upvotes, 0 downvotes (100% like it) (You must be signed in to vote)
pcre
URL Slugs Optimized
This slug regex is optimized using strictly my own opinions. Slugs: Should be english, alphanumeric phrases separated with a single dash. Should not contain single alpha character between dashes....
Submitted by
Jordon Baade
-
6 years ago
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
...
673
674
675
676
677
678
679
...
732
Look up corresponding value in unsorted list
Vote
1
1 upvotes, 0 downvotes (100% like it) (You must be signed in to vote)
Regular Expression
pcre
/
(?<=
"name":
"
)
(
.
+
)
(
",
\n\s
+
"war_memorials":
"
)
(
.
*
?
\1
,
)
(
.
*
?
)
(
,
.
*
)
(?=
",
)
/
gm
Open regex in editor
Description
Loading markdown...
Submitted by
anonymous
- 5 years ago