Please enable JavaScript to use this web application.
Regular
Expressions
101
Social
Social
Join the Discord community!
Follow me on twitter!
Send me an email
Donate
Donate
Donate through Paypal
Become a Github Sponsor
Info
Info
Find out what's new!
RegEx101 Wiki
Report bugs or make suggestions
What's new?
Loading content...
Close
Regex Editor
Regex Editor
Community Patterns
Community Patterns
Account
Account
Regex Quiz
Regex Quiz
Settings
Settings
Live Help
Live Help
Get help on Discord
Get help on IRC
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 (C#)
Rust
Sponsors
Community Patterns
Search among 17,100 community submitted regex patterns...
0
1 upvotes, 1 downvotes (score 9.5%) (You must be signed in to vote)
replace-last-comma with semicolon
PCRE (PHP <7.3)
replace-last-comma with semicolon similar to http://stackoverflow.com/questions/3829483/how-to-replace-last-occurrence-of-characters-in-a-string-using-javascript
Submitted by
Michael Freidgeim
-
8 years ago
2016-04-20 01:27
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
DD-MM-YYYY
ECMAScript (JavaScript)
Any date that as a valid month, a valid date and a year composed of 4 numbers. You can change the '-' caracter to any divider you want.
Submitted by
anonymous
-
8 years ago
2016-04-19 21:31
0
1 upvotes, 1 downvotes (score 9.5%) (You must be signed in to vote)
DD-MM-YYYY
ECMAScript (JavaScript)
Any date that as a valid month, a valid date and a year composed of 4 numbers. You can change the '-' caracter to any divider you want.
Submitted by
anonymous
-
8 years ago
2016-04-19 21:31
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
Text to Sentence with URLs
PCRE (PHP <7.3)
Text to sentence is easy, but not when there are URLs or website names inside the text.
Submitted by
khpatel4991
-
8 years ago
2016-04-19 20:39
2
2 upvotes, 0 downvotes (score 34.2%) (You must be signed in to vote)
Standard first and/or last name
PCRE (PHP <7.3)
This just checks for case insensitive first name, last name, or both.
Submitted by
Josh Garnick
-
8 years ago
2016-04-19 20:24
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
CATEGORY
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
8 years ago
2016-04-19 16:46
2
2 upvotes, 0 downvotes (score 34.2%) (You must be signed in to vote)
Asterisk channel name
PCRE (PHP <7.3)
Extract channel name from Asterisk channel line
Submitted by
Denis Bondar
-
8 years ago
2016-04-19 15:36
0
1 upvotes, 1 downvotes (score 9.5%) (You must be signed in to vote)
Find in string template with regular expression
PCRE (PHP <7.3)
In string find regular expression or data type with limiters (start and end or summary count of symbols)
Submitted by
Bohdanov Mikhail
-
8 years ago
2016-04-19 14:49
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
foo
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
8 years ago
2016-04-19 13:55
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
WINCOR
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
8 years ago
2016-04-19 12:30
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
dates
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
8 years ago
2016-04-19 12:24
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
dd/mm/yyyy inc. LeapYears
ECMAScript (JavaScript)
1900 - 2015. Useful for Birthdates
Submitted by
ChrisAbra
-
8 years ago
2016-04-19 12:16
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
Url parser
PCRE (PHP <7.3)
Parse url with any complexity
Submitted by
Bohdanov Mikhail
-
8 years ago
2016-04-19 12:03
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
Jaba
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
8 years ago
2016-04-19 11:11
1
2 upvotes, 1 downvotes (score 20.8%) (You must be signed in to vote)
Port validator
Python
Validates port numbers from 1 to 65535
Submitted by
Agustín Bouillet
-
8 years ago
2016-04-19 10:13
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
Cisco Mac address regex
ECMAScript (JavaScript)
just a a simple match for a mac address
Submitted by
celtic
-
8 years ago
2016-04-19 09:08
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
2001-9999
ECMAScript (JavaScript)
2001-9999
Submitted by
anonymous
-
8 years ago
2016-04-19 08:51
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
Exact match of whole word or phrase in string
PCRE (PHP <7.3)
word in sentense - true sentense has a word - true There is a word in the sentense - true Sentense wordless - false Sentense is empty - false words are in the sentense - false...
Submitted by
Denisenko Artem
-
8 years ago
2016-04-19 07:49
3
5 upvotes, 2 downvotes (score 35.9%) (You must be signed in to vote)
IPv4 validation
ECMAScript (JavaScript)
validate an IP v4
Submitted by
harimambura
-
8 years ago
2016-04-19 00:12
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
Parse faxmail log
PCRE (PHP <7.3)
no description available
Submitted by
Michael Blair
-
8 years ago
2016-04-19 00:08
1
...
656
657
658
659
660
661
662
...
855
Validación de numeros de teléfono
2
2 upvotes, 0 downvotes (score 34.2%) (You must be signed in to vote)
Regular Expression
PCRE (PHP <7.3)
/
^
(?:
[
\+
]
{1}
)?
(?:
\(
[
0
-
9
]
{1,2}
\)
?
)?
(?:
[
0
-
9
]
?
-
?
){6,14}
[
0
-
9
]
$
/
gmi
Open regex in editor
Description
Loading markdown...
Submitted by
devsolarte@gmail.com
-
8 years ago
2016-04-02 17:18