Regular
Expressions
101
@regex101
Follow me on twitter!
Donate
Like regex101? Support it by donating!
Sponsor
Become a sponsor!
Contact
Send me an email
Bug Reports & Feedback
Bugs or suggestions go here
Wiki
Wiki (Info & FAQ)
Whats new?
Whats new?
Regex Editor
Regex Editor
Regex Library
Regex Library
Account
Account
Regex Quiz
Regex Quiz
Settings
Settings
Live Help
Live Help
Consider a donation
Consider a donation
Become a sponsor
Become a sponsor
Order By
Most Recent
Most Points
Fewest Points
Filter by Flavor
PCRE2
PCRE
ECMAScript
Python
Golang
Java
Sponsor
Jamstack at Scale
Library entries
Search library
0
0 upvotes, 0 downvotes (0% like it) (You must be signed in to vote)
java
Submitted by
José Airton Neto
-
2 hours ago
sim ou não
expressão regular que só aceita s para sim e n para não
0
0 upvotes, 0 downvotes (0% like it) (You must be signed in to vote)
javascript
Submitted by
Vladox
-
6 hours ago
Identify lines on an invoice
it identifies lines in an invoice
0
0 upvotes, 0 downvotes (0% like it) (You must be signed in to vote)
javascript
Submitted by
anonymous
-
a day ago
Validacion de palabras con acento
Valida letras y palabras con acento
0
0 upvotes, 0 downvotes (0% like it) (You must be signed in to vote)
pcre2
Submitted by
anonymous
-
a day ago
python 3 executable regex
give then names of various executables filter out ones that run python3+
0
0 upvotes, 0 downvotes (0% like it) (You must be signed in to vote)
pcre2
Submitted by
anonymous
-
2 days ago
Getting Parts of URL
https://stackoverflow.com/questions/27745/getting-parts-of-a-url-regex
0
0 upvotes, 0 downvotes (0% like it) (You must be signed in to vote)
javascript
Submitted by
https://danlevy.net/
-
2 days ago
Match URL or URI strings
Reference: https://stackoverflow.com/a/34669019/369727
1
1 upvotes, 0 downvotes (100% like it) (You must be signed in to vote)
pcre2
Submitted by
ImAlbi57
-
2 days ago
Signed numbers with optional decimal part (comma or dot)
Signed numbers with optional decimal part (comma or dot)
1
1 upvotes, 0 downvotes (100% like it) (You must be signed in to vote)
java
Submitted by
anonymous
-
2 days ago
Sınıfları Tek Tek seçme
za
0
0 upvotes, 0 downvotes (0% like it) (You must be signed in to vote)
javascript
Submitted by
Stefa168
-
2 days ago
Trailing dot removal after number sequence
The capture group returns only a number with a dot if it has decimal digits, otherwise it is treated as an integer. 1.1 = 1.1 1\. = 1
0
0 upvotes, 0 downvotes (0% like it) (You must be signed in to vote)
pcre2
Submitted by
vito
-
3 days ago
日志解析
日志解析
0
0 upvotes, 0 downvotes (0% like it) (You must be signed in to vote)
javascript
Submitted by
anonymous
-
3 days ago
email address
email address regex
0
0 upvotes, 0 downvotes (0% like it) (You must be signed in to vote)
javascript
Submitted by
DATA_GATA
-
3 days ago
Lookbehind
Example of how to pull a particular piece of the URL
0
0 upvotes, 0 downvotes (0% like it) (You must be signed in to vote)
pcre2
Submitted by
Math
-
3 days ago
"zoom" follow bots
this is for finding all of the "zoom" follow bots on twitch
0
0 upvotes, 0 downvotes (0% like it) (You must be signed in to vote)
python
Submitted by
anonymous
-
3 days ago
Niledutch voyage regex
s
0
0 upvotes, 0 downvotes (0% like it) (You must be signed in to vote)
pcre2
Submitted by
anonymous
-
3 days ago
Validate XML
Validate XML
0
0 upvotes, 0 downvotes (0% like it) (You must be signed in to vote)
pcre2
Submitted by
R. Moreno
-
3 days ago
v1.colName, v2.colName ==> or decode( v1.colName, v2.colName, 1, 0) = 0
For Oracle DB, as it doesn't consider null != informed DATE, and considers null != null. For the WHERE clause. = 0 to get differences = 1 to get "sameness"...
0
0 upvotes, 0 downvotes (0% like it) (You must be signed in to vote)
pcre2
Submitted by
raaaahman
-
3 days ago
PHPDocumentor - Add missing @since tags in doc blocks
This regular expression helps keeping the PHP documentation up to date by adding the @since tags in the doc block where there are none.
0
0 upvotes, 0 downvotes (0% like it) (You must be signed in to vote)
python
Submitted by
anonymous
-
4 days ago
parse log file for message type, message, ticket number and user
for the Google interacting with the OS course final project on Coursera
0
0 upvotes, 0 downvotes (0% like it) (You must be signed in to vote)
pcre
Submitted by
Dan
-
4 days ago
Remove Text after Parenthesis
/ \).$ / gm \) matches the character ) literally (case sensitive) ...
0
0 upvotes, 0 downvotes (0% like it) (You must be signed in to vote)
pcre
Submitted by
Dan
-
4 days ago
Character Match Replace + Capturing Group
s matches the character s literally (case sensitive) 1st Capturing Group (\d) \d matches a digit (equivalent to [0-9]) Global pattern flags...
1
2
3
4
...
679
email address
Vote
0
0 upvotes, 0 downvotes (0% like it) (You must be signed in to vote)
Regular Expression
javascript
/
^
(
(
[^
<>()
\[\]\\
.,;:
\s
@"
]
+
(
\.
[^
<>()
\[\]\\
.,;:
\s
@"
]
+
)*
)
|
(
"
.
+
"
)
)
@
(
(
\[
[
0
-
9
]
{1,3}
\.
[
0
-
9
]
{1,3}
\.
[
0
-
9
]
{1,3}
\.
[
0
-
9
]
{1,3}
]
)
|
(
(
[
a
-
zA
-
Z
\-
0
-
9
]
+
\.
)+
[
a
-
zA
-
Z
]
{2,}
)
)
/
mg
Open regex in editor
Description
Loading markdown...
Submitted by
anonymous
- 3 days ago
Regular
Expressions
101
Please wait while the app is loading...
Please enable JavaScript to use this web application.