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...
1
Validate a 10-digit US Phone Number
PCRE2 (PHP >=7.3)
Validate a 10-digit US Phone Number
Submitted by
JB
-
3 years ago
1
Name
PCRE2 (PHP >=7.3)
English or Arabic Letters and Spaces
Submitted by
anonymous
-
3 years ago
1
Internation Phone
PCRE2 (PHP >=7.3)
phone number with country code + or 00
Submitted by
anonymous
-
3 years ago
1
01-sitepoint-com-learn-regex-olmatro
PCRE2 (PHP >=7.3)
01-sitepoint-com-learn-regex-olmatro https://www.sitepoint.com/learn-regex/ SOM: we’ll look at the simplest form of regular expression we can build. Input the following:...
Submitted by
https://www.sitepoint.com/learn-regex/
-
3 years ago
1
Remove single, but not repeating newlines, except immediately after a period. (xiTWA2/1)
PCRE (PHP <7.3)
Intended as a first pass on already word wrapped text, to remove wrap newlines while preserving likely intentional ones. Not especially robust.
Submitted by
Tristan
-
3 years ago
1
Word wrap text
PCRE (PHP <7.3)
(Directly inspired by https://macromates.com/blog/2006/wrapping-text-with-regular-expressions/ ) This version only splits between words, so lines may wrap earlier than the given maximum. Passes existing linefeed through "as‐is", so probably not useful for reflowing already wrapped text
Submitted by
Tristan
-
3 years ago
0
Replace line breaks and lines like "James 5:00 PM" to clean up messages copied from slack (iPFAnO/2)
PCRE2 (PHP >=7.3)
Before I recommend XMind 8 and not the newer XMind Zen (I have not tried XMind 2021). It is available here: xmind.net/download/xmind8 (edited) :heavy_plus_sign: 1...
Submitted by
Maksim Zinovev
-
3 years ago
0
Remove parameters from gif images urls
PCRE2 (PHP >=7.3)
.
Submitted by
dares
-
3 years ago
0
Convert giphy iframes to images
PCRE2 (PHP >=7.3)
regex to convert giphy iframes to images giphy for newsletters
Submitted by
dares
-
3 years ago
0
Wordpress ShorCode capture
PCRE2 (PHP >=7.3)
Regex to capture shortcodes from wordpress post content
Submitted by
dares
-
3 years ago
0
Separate Autocomplete Fields
ECMAScript (JavaScript)
Autocomplete Fields Regex
Submitted by
anonymous
-
3 years ago
1
https
PCRE2 (PHP >=7.3)
regex for url
Submitted by
anonymous
-
3 years ago
1
Find last occurrence of char in a string
ECMAScript (JavaScript)
Find last occurrence of . can be replaced with anything .
Submitted by
Volgers
-
3 years ago
1
Search needle by position
PCRE2 (PHP >=7.3)
Searches for needle starting from an exact position
Submitted by
Volgers
-
3 years ago
0
Select progress from given text
PCRE2 (PHP >=7.3)
https://regex101.com/r/bbccFV/1
Submitted by
anonymous
-
3 years ago
0
Interesante
ECMAScript (JavaScript)
Obtener Texto
Submitted by
Asura
-
3 years ago
0
YouTube video URL to video ID
Python
This regex can match with a valid YouTube link and retrieve the video ID in one of the four capturing groups. Unfortunately, I couldn't manage to use a single capturing group, but there is no difference between all of them.
Submitted by
Lyroy TheToad
-
3 years ago
(Last modified 3 years ago)
0
contentful
PCRE2 (PHP >=7.3)
contentful
Submitted by
anonymous
-
3 years ago
0
legal
PCRE2 (PHP >=7.3)
legal
Submitted by
anonymous
-
3 years ago
0
ATST_RESTRICTED
ECMAScript (JavaScript)
ATST_RESTRICTED
Submitted by
anonymous
-
3 years ago
1
...
195
196
197
198
199
...
901
Community Library Entry
0
Regular Expression
PCRE (PHP <7.3)
/
^
(
\d
+
)
,
(
[^
,
]
+
)
,
(
\d
+
)
,
(
[
0
-
9
\.
]
+
)
$
/
gm
Open regex in editor
Description
no description available
Submitted by
anonymous
-
6 years ago