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
Highest Score
Lowest Score
Most upvotes
Most downvotes
Filter by Flavor
PCRE2 (PHP >=7.3)
PCRE (PHP <7.3)
ECMAScript (JavaScript)
Python
Golang
Java 8
.NET 7.0 (C#)
Rust
Sponsors
Community Patterns
Search among 4,740 community submitted regex patterns...
0
DK CPR Validation
PCRE2 (PHP >=7.3)
Checks in input for matching social security numbers in Denmark
Submitted by
Found online
-
a year ago
0
AAU CPR validation (more rebust)
PCRE2 (PHP >=7.3)
This one makes sure to not match 31 in months where it does not exist and cuts off february at 28. Might need to do special check for 29th of february ..?
Submitted by
anonymous
-
a year ago
0
PSMFC-ELogUserRegex
PCRE2 (PHP >=7.3)
allow simple usernames starting with a letter, containing . - and _ or an email
Submitted by
anonymous
-
a year ago
0
PCRE destination filename matcher
PCRE2 (PHP >=7.3)
Matches the most advanced filename for a given version as per my file naming conventions.
Submitted by
Robert Larkins
-
a year ago
0
Get All inst of Characters Name
Python
Standard Script format tv
Submitted by
SummerRay
-
a year ago
0
patternmatching
PCRE2 (PHP >=7.3)
pattern to ensure keywords are picked up if words on either side
Submitted by
anonymous
-
a year ago
0
Start with t or T and some number and End with <String>
PCRE2 (PHP >=7.3)
Some custom pattern matching where a string start with t and end with any string, for example - t123_click, t1234_click_submit, T12_click_click_skip
Submitted by
Jaswinder
-
a year ago
0
find all wikipedia links in a text
PCRE2 (PHP >=7.3)
a regex that finds all expressions that start with "(https://en.wikipedia.org/wiki" and end with a closing bracket.
Submitted by
David
-
a year ago
0
Match IPv4 Valid
.NET 7.0 (C#)
expression to capture valid IP
Submitted by
anonymous
-
a year ago
0
Init code
PCRE2 (PHP >=7.3)
Init code
Submitted by
anonymous
-
a year ago
0
Storyblok Assets
PCRE2 (PHP >=7.3)
Match paths for a.storyblok.com
Submitted by
anonymous
-
a year ago
(Last modified a year ago)
0
Math any kind of letter
PCRE2 (PHP >=7.3)
Just a quick example of the \p{L} pattern
Submitted by
anonymous
-
a year ago
0
vscode 代码snippet 替换 为 pycharm 格式
Python
vscode 代码snippet 替换 为 pycharm 格式
Submitted by
anonymous
-
a year ago
0
log timestamp
Golang
extract time stamp from log entry
Submitted by
anonymous
-
a year ago
0
Capture optional HTML tag attributes in any order
PCRE2 (PHP >=7.3)
We often see some regular expressions to manipulate HTML instead of using a DOM parser. But well, in some cases we haven't got the parser or efficiency is a question of concern. In most cases I think the best is to use both together. First a simple and bullet-proof regex to extract data from the HTM...
Submitted by
Patrick Janser
-
a year ago
0
Youtube API V3 Video list convert duration
PCRE2 (PHP >=7.3)
Convert the YouTube API V3 videos list, duration of videos to separate numbers for calculations.
Submitted by
Bo
-
a year ago
0
Get path from any text
PCRE2 (PHP >=7.3)
Get path (windows style) from any type of text (error message, e-mail corps ...), quoted or not. THIS IS COMMENTED VERSION !_ to simple copy and use it, go https://regex101.com/r/zWGLMP Relative path are not supported...
Submitted by
nitrateag
-
a year ago
(Last modified a year ago)
0
pythonize beautiful query
PCRE2 (PHP >=7.3)
pythonize beautiful query
Submitted by
anonymous
-
a year ago
0
Editoria gamecoin
Python
Capturar editorias do site gamecoin
Submitted by
anonymous
-
a year ago
0
wiki
PCRE2 (PHP >=7.3)
wiki parser
Submitted by
anonymous
-
a year ago
1
...
212
213
214
215
216
...
237
phone number
-2
Regular Expression
Python
r"
(?:
(
\+
?
\d
{1,3}
)
)?
(?:
(
[
\(
]
?
\d
+
[
\)
]
?
)
[
-
]
)?
(
\d
{1,5}
[
\-
]
?
\d
{1,5}
)
"
Open regex in editor
Description
An extremely complete regex, that...
Accepts international phones and most of regional phone numbers;
Accepts phone numbers with/without "+", with/without space or "-" in the middle of the phone, and more.
Gets groups of all important data of the phone number (local code, country code and the phone number itself)
Submitted by
@thegamerbr1
-
8 years ago