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,040 community submitted regex patterns...
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
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
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
Internation Phone
PCRE2 (PHP >=7.3)
phone number with country code + or 00
Submitted by
anonymous
-
3 years ago
1
Name
PCRE2 (PHP >=7.3)
English or Arabic Letters and Spaces
Submitted by
anonymous
-
3 years ago
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
Obsidian external embedded link
PCRE2 (PHP >=7.3)
Obsidian external embedded link
Submitted by
arezvov
-
3 years ago
1
pack_size
PCRE2 (PHP >=7.3)
get pack_size from a string
Submitted by
anonymous
-
3 years ago
1
us phone number validation
PCRE2 (PHP >=7.3)
us phone number validation
Submitted by
anonymous
-
3 years ago
1
Youtube video URL or empty
ECMAScript (JavaScript)
Matches correct youtube video urls and empty strings.
Submitted by
xeon927 on stackoverflow
-
3 years ago
1
Email Verification
PCRE2 (PHP >=7.3)
PHP REGEX to verify an email.l
Submitted by
anonymous
-
3 years ago
1
...
263
264
265
266
267
...
902
Community Library Entry
0
Regular Expression
PCRE (PHP <7.3)
/
(?<spaceBefore>
^
[
\t
]
*
)
(?<function>
SetColor
|
SetAlpha
|
DrawRect
|
Delay
|
Flip
|
SetScale
|
SetVirtualResolution
|
CloseStream
)
[
\t
]
*
(?!
\(
)
(?<parameters>
[
\w
\(\)\-
,
\.\/\[\]\*
\t
\+
]
+
)?
;
?
/
gm
Open regex in editor
Description
no description available
Submitted by
anonymous
-
5 years ago