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,000 community submitted regex patterns...
0
하나의 문자열에서 빈칸(스페이스)가 하나만 나오도록 하는 정규식
PCRE2 (PHP >=7.3)
예시 “Cafe Latte” (ㅇ) “Ca fe Latte” (ㅇ) “Cafe Latte” (X) “ Cafe Latte” (X) “ Cafe Latte ” (X)...
Submitted by
anonymous
-
2 years ago
0
1부터 45까지의 숫자만 받음
PCRE2 (PHP >=7.3)
예시) 1 // ok 45 // ok 46 // no
Submitted by
anonymous
-
2 years ago
0
match comments
PCRE (PHP <7.3)
/** comments */ // to the end /* comments */
Submitted by
monk
-
2 years ago
0
Truncate words to only 2 first characters of the word
ECMAScript (JavaScript)
It grabs 2 first characters from a word. So: please will be pl sure and sun will be su white and what will be wh ...
Submitted by
anonymous
-
2 years ago
0
check mail
ECMAScript (JavaScript)
Vérifie si le mail est valide ou non
Submitted by
anonymous
-
2 years ago
0
Wire Rebar Mesh Signature
PCRE2 (PHP >=7.3)
Parsing signature of wire rebar mesh by "ГОСТ 23279-2012"
Submitted by
Anatoliy Zhartun
-
2 years ago
0
Match all filenames in any URL including those with ANSI escaped characters (dotNET version)
.NET 7.0 (C#)
Match all filenames in any URL including those with ANSI escaped characters (dotNET version)
Submitted by
The Fourth Bird
-
2 years ago
(Last modified 2 years ago)
0
Match all filenames in any URL including those with ANSI escaped characters (Js/python version)
ECMAScript (JavaScript)
Match all filenames in any URL including those with ANSI escaped characters (Js/python version).
Submitted by
The Fourth Bird
-
2 years ago
(Last modified 2 years ago)
0
Match all filenames in any URL including those with ANSI escaped characters (PHP version)
PCRE (PHP <7.3)
Match all filenames in any URL including those with ANSI escaped characters (PHP version).
Submitted by
The Fourth Bird
-
2 years ago
(Last modified 2 years ago)
0
Regex for youtube links
PCRE2 (PHP >=7.3)
Can obtain videoId using videoId () { return this.video_url.match(/(?:https?:\/\/)?(?:www\.)?youtu(?:be)?\.(?:com|be)(?:\/watch\/?\?v=|\/embed\/|\/shorts\/|\/)(\w+)/)[1] } ...
Submitted by
anonymous
-
2 years ago
0
Regex to flag the word "pharmafia"
Python
Useful for forum moderators looking to flag variations of the word "pharmafia" in comments. captures the following variations: pharmafia ph4rm4f14 phar_mafia phar-mafia
Submitted by
tychopotts
-
2 years ago
0
Ipv4 with optional port
.NET 7.0 (C#)
ipv4 with optional port
Submitted by
anonymous
-
2 years ago
0
No leading or trailing spaces
.NET 7.0 (C#)
No leading or trailing spaces
Submitted by
anonymous
-
2 years ago
0
FiveM cfx.re/join Link Regex
Python
Matches any valid cfx.re/join/ links.
Submitted by
Johnny_JTH
-
2 years ago
0
docker image tag name
ECMAScript (JavaScript)
javascript regex for docker image tag name from doc
Submitted by
ahmad safari
-
2 years ago
0
docker image tag name
ECMAScript (JavaScript)
javascript regex for docker image tag name from doc
Submitted by
ahmad safari
-
2 years ago
0
Python program to match if two words from a list of words starting with letter 'P'.
Python
Python program to match if two words from a list of words starting with letter 'P'.
Submitted by
anonymous
-
2 years ago
0
Capture Data between 2 slashes
PCRE2 (PHP >=7.3)
Capture Data between 2 slashes
Submitted by
Sarnath Jegadeesan
-
2 years ago
0
Split The Phone Numbers
PCRE2 (PHP >=7.3)
Split The Phone Numbers
Submitted by
anonymous
-
2 years ago
0
腾讯视频
PCRE (PHP <7.3)
从元素解析视频URL
Submitted by
anonymous
-
2 years ago
1
...
823
824
825
826
827
...
900
Community Library Entry
0
Regular Expression
Java 8
"
^
(
[
A
-
zÀ
-
ÿ
]
{2,}
(
[
.-
]
)?
)+
(
?
(
(
[
A
-
zÀ
-
ÿ
]
){2,}
(
[
.-
]
)?
)
)*
(
(
[
A
-
zÀ
-
ÿ
]
){2,}
(
[
.-
]
)?
)+
$
"
gm
Open regex in editor
Description
2135
Submitted by
anonymous
-
2 years ago