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 7,840 community submitted regex patterns...
-1
Mr Abdul Alim (m2a)
PCRE2 (PHP >=7.3)
Hi. My name is Mr. Abdul Alim (m2a) in Bangladesh from district. Sirajgonj contract number (+8801882650050 htttps://www.example.com my property
Submitted by
mr abdul alim talukder
-
2 years ago
-1
bl_regex_fees_types_2
PCRE2 (PHP >=7.3)
guif
Submitted by
guif
-
2 years ago
-1
.NET tools
ECMAScript (JavaScript)
a
Submitted by
anonymous
-
2 years ago
(Last modified 2 years ago)
-1
Email Regex
ECMAScript (JavaScript)
Email Validation Regex
Submitted by
anonymous
-
2 years ago
-1
Remove HTML tags from a string using JavaScript and RegEx
ECMAScript (JavaScript)
Remove HTML tags from a string using JavaScript and RegEx
Submitted by
Megralo
-
2 years ago
-1
Convert numbers-only YYYYMMDD date to dash delineated YYYY-MM-DD
PCRE2 (PHP >=7.3)
Convert numbers-only YYYYMMDD date to dash delineated YYYY-MM-DD
Submitted by
anonymous
-
2 years ago
-1
1
PCRE2 (PHP >=7.3)
1
Submitted by
anonymous
-
2 years ago
-1
213
PCRE2 (PHP >=7.3)
12312
Submitted by
anonymous
-
2 years ago
-1
slug numeric
PCRE2 (PHP >=7.3)
pattern to validate a slug with numbers
Submitted by
mestri.rodrigo
-
2 years ago
-1
is
PCRE2 (PHP >=7.3)
Hi it is me
Submitted by
anonymous
-
2 years ago
-1
Match Consonants
PCRE2 (PHP >=7.3)
Use regex to test whether a letter is a consonant or not. Use /[B-DF-HJ-NP-TV-Z]/ for capitals.
Submitted by
Matthew Hiebing
-
2 years ago
-1
Bluerose order-code
PCRE2 (PHP >=7.3)
order-code 20220623-19563352 20220623-18261367 20220606-15484894 20220606-15484 20220606...
Submitted by
anonymous
-
2 years ago
-1
Discord Mention
Python
Regex to check if a string is a discord mention
Submitted by
anonymous
-
2 years ago
(Last modified 2 years ago)
-1
Email
ECMAScript (JavaScript)
validation email
Submitted by
anonymous
-
2 years ago
-1
Extract favicon from html head meta links
ECMAScript (JavaScript)
I needed a generic way to pull the shortcut icon for sites. This expression parses the html for the icon. If the icon was not found, my code checks for the "favicon.ico" in the root of the site.
Submitted by
groundh0g
-
a year ago
-1
IP6 Validator Address (Simple)
PCRE2 (PHP >=7.3)
Short form validation of an IP6 address Less complex than other examples I have seen around
Submitted by
anonymous
-
a year ago
(Last modified a year ago)
-1
phone
PCRE2 (PHP >=7.3)
regex for phone
Submitted by
anonymous
-
a year ago
-1
regex to check for buffer printing
Python
This regex checks if c/c++ code contains char buffer that is later printed.
Submitted by
tagoras
-
a year ago
-1
Matching un-wrapped HTML & CSS code blocks in Markdown
ECMAScript (JavaScript)
PATTERNS RegEx Flavour ECMAScript (JavaScript, ActionScript, TypeScript, etc.) ...
Submitted by
anonymous
-
a year ago
-1
url matcher 2.0
PCRE2 (PHP >=7.3)
now matches any protocol, as well as username, password, query and fragment. query is not split
Submitted by
Mitsunee
-
a year ago
1
...
145
146
147
148
149
...
392
Trim whitespace at beginning and/or end of a line
0
Regular Expression
Python
r"
^\s
*
(
\S.
*
\S
)
\s
*
$
"
gm
Open regex in editor
Description
identifies spaces at the beginning and end of lines. Can be used as a Trim function
Submitted by
Eric Hills
-
2 years ago