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
There are currently no sponsors.
Become a sponsor today!
Community Patterns
Search among 17,940 community submitted regex patterns...
1
Match at least One upper, lower, number and Special char.
PCRE2 (PHP >=7.3)
Determines if string contains: 1 Uppercase 1 Lowercase 1 Number 1 Symbol
Submitted by
Rae
-
3 years ago
1
selects Bengali text
ECMAScript (JavaScript)
This selects Bengali using the script tag. It works in Javascript, using: text.split(/+/ug) or text.match(/[\p{Script=Bengali}]+/ug) This Regex was provided by Peter Seliger
Submitted by
anonymous
-
3 years ago
1
Phone Number Selector
ECMAScript (JavaScript)
Select a Phone Number with +98 or 0
Submitted by
Amir Hossein Khateri
-
3 years ago
1
Select PHP Block Code
PCRE2 (PHP >=7.3)
Select php block code , start to end.
Submitted by
amir hossein khateri
-
3 years ago
1
Email Address Validation
PCRE2 (PHP >=7.3)
This validate all most all email addresses.
Submitted by
anonymous
-
3 years ago
1
lsblk-output-regex
Golang
Trying to adapt this regex to support LVM.
Submitted by
anonymous
-
3 years ago
1
Brackets Items
PCRE2 (PHP >=7.3)
This REGEX, allow extract all words in brackets [].
Submitted by
anonymous
-
3 years ago
1
Absolute File Path Validation
ECMAScript (JavaScript)
Matches absolute file paths, such as C:\Users\username\Documents\filename.txt The path must contain a file and extension at the end
Submitted by
anonymous
-
3 years ago
1
Select Chapters and Bad Headers
PCRE2 (PHP >=7.3)
Selects and optionally replaces repetitive chapters, headers, and other sections with a dinkus. Does not select unique chapter titles. Useful for quickly cleaning literary datasets for finetuning a model or module. Originally designed for use with NovelAI.
Submitted by
lion
-
3 years ago
(Last modified 3 years ago)
1
yyyy/mm/dd
Golang
^(((\d{3}[1-9]|\d{2}[1-9]\d|\d[1-9]\d{2}|[1-9]\d{3})(\/)(((0[13578]|1[02])(\/)(0[1-9]|[12]\d|3[01]))|((0[469]|11)(\/)(0[1-9]|[12]\d|30))|(02(\/)(0[1-9]|[1]\d|2[0-8]))))|(((\d{2})(0[48]|2468|13579)|((0[48]|2468|3579)00))(\/)02(\/)29))$ Match year/month/day format. e.g: 2020/02/29 [match] 2021/02/29 ...
Submitted by
mayl0421
-
3 years ago
1
Div shortcode [div]..[/div]
ECMAScript (JavaScript)
Converts the markdown shortcode for the dive element to the regular HTML: Example shortcode: [div id="bla" class="ups"]some multiple line text[/div]
Submitted by
Dux Linux
-
3 years ago
1
BIC Codes
PCRE2 (PHP >=7.3)
BIC (Bank Identifier Code) #fin #bank #swift #iban #bic
Submitted by
anonymous
-
3 years ago
1
international country code matcher
PCRE2 (PHP >=7.3)
to match international country code of the phone number
Submitted by
anonymous
-
3 years ago
1
Date regex
PCRE2 (PHP >=7.3)
this regex check if the date is in the format d/m/Y H:i , it will not check the number of days in month
Submitted by
Kristian lentino
-
3 years ago
1
Detect any integer larger than 499
PCRE2 (PHP >=7.3)
Glad this helps for some
Submitted by
Wallik
-
3 years ago
1
more than 500 dollar detector
PCRE2 (PHP >=7.3)
it's brute force and messy, share a comment to simply remove redundancy
Submitted by
anonymous
-
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
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
https
PCRE2 (PHP >=7.3)
regex for url
Submitted by
anonymous
-
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
1
...
262
263
264
265
266
...
897
international country code matcher
1
Regular Expression
PCRE2 (PHP >=7.3)
/
\+
(
9
[
976
]
\d
|
8
[
987530
]
\d
|
6
[
987
]
\d
|
5
[
90
]
\d
|
42
\d
|
3
[
875
]
\d
|
2
[
98654321
]
\d
|
9
[
8543210
]
|
8
[
6421
]
|
6
[
6543210
]
|
5
[
87654321
]
|
4
[
987654310
]
|
3
[
9643210
]
|
2
[
70
]
|
7
|
1
)
\d
{1,14}
$
/
gm
Open regex in editor
Description
to match international country code of the phone number
Submitted by
anonymous
-
3 years ago