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 9,620 community submitted regex patterns...
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
semver
PCRE (PHP <7.3)
Semantic Versioning regex pattern according to Tom Preston-Werner http://semver.org/ https://github.com/mojombo/semver/blob/master/semver.md ...
Submitted by
@gvlx <Gerardo Lisboa>
-
9 years ago
2014-10-04 00:02
4
4 upvotes, 0 downvotes (score 56.1%) (You must be signed in to vote)
semver
Recommended
This entry has been specifically selected by our team to be a great submission
PCRE (PHP <7.3)
Semantic Versioning regex pattern according to Tom Preston-Werner http://semver.org/ https://github.com/mojombo/semver/blob/master/semver.md First version of this regex follows semver 2.0.0....
Submitted by
@gvlx <Gerardo Lisboa>
-
9 years ago
2014-10-03 18:53
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
Europead date or MSSQL Timestamp
PCRE (PHP <7.3)
Matches european dates (DD.MM.YYYY[ HH:MM:SS]) and MS-SQL Timestamp ({ts 'YYYY-MM-DD HH:MM:SS'})
Submitted by
anonymous
-
9 years ago
2014-10-03 07:57
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
input mandatory title
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
9 years ago
2014-10-02 17:43
0
1 upvotes, 1 downvotes (score 9.5%) (You must be signed in to vote)
webongo
PCRE (PHP <7.3)
webongo test
Submitted by
webongo
-
9 years ago
2014-10-02 11:40
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
search mailadress
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
9 years ago
2014-10-02 04:16
4
19 upvotes, 15 downvotes (score 39.5%) (You must be signed in to vote)
Remove HTML tags
PCRE (PHP <7.3)
This regex is used to remove HTML tag on string
Submitted by
Jordane BACHELET
-
9 years ago
2014-10-01 08:36
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
Mips I-Type Instructions
PCRE (PHP <7.3)
Parses an I-Type Mips instruction. You can add and remove instructions in the list to support more I-Type instructions. Will detect only "addi", "andi" or "ori" as is
Submitted by
lunfel
-
9 years ago
2014-10-01 04:22
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
Mips R-Type Instructions
PCRE (PHP <7.3)
Parses an R-Type Mips instruction. You can add and remove instructions in the list to support more R-Type instructions. Will detect only "add", "and", "nor" or "sub" as is
Submitted by
lunfel
-
9 years ago
2014-10-01 04:20
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
find single character
PCRE (PHP <7.3)
Why this regEx not find all single character? Why not work Start of string and End of string in bracket?
Submitted by
anonymous
-
9 years ago
2014-09-30 15:31
-2
1 upvotes, 3 downvotes (score 4.6%) (You must be signed in to vote)
get all href=()
PCRE (PHP <7.3)
no description available
Submitted by
artyom lisovskij
-
9 years ago
2014-09-26 08:25
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
Convert YYMMDD to DD/MM/YY
PCRE (PHP <7.3)
I'm new to regular expressions and I've been searching high and low for this really simple date conversion from YYMMDD to DD/MM/YY e.g. 140923 to 23/09/14. Maybe I just didn't search hard enough, but here goes: Search/original string: (\d{4})(\d{2})(\d{2}) ...
Submitted by
Nike Begbaaji
-
9 years ago
2014-09-24 21:46
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
testmmoj
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
9 years ago
2014-09-24 21:01
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
Match Tags in ExpressionEngine
PCRE (PHP <7.3)
The second matcher will get EE tags from $tagdata.
Submitted by
Kyle Palko
-
9 years ago
2014-09-24 19:57
0
11 upvotes, 11 downvotes (score 30.7%) (You must be signed in to vote)
number with or without thousands separator(.) and decimal part(,)
PCRE (PHP <7.3)
number with or without thousands separator(.) and decimal part(,) ES: 100000; 1.646; 13323,33; 3.444.434,44
Submitted by
Basten
-
9 years ago
2014-09-24 15:30
13
76 upvotes, 63 downvotes (score 46.4%) (You must be signed in to vote)
URL Validator
PCRE (PHP <7.3)
Validates - URLs with schemes - http, https and ftp Relative URL starting with / and ../
Submitted by
anonymous
-
9 years ago
2014-09-24 08:41
2
2 upvotes, 0 downvotes (score 34.2%) (You must be signed in to vote)
SO “00000000000000000000000000000†is match to Regex “^[1-9]|0$†in .N
PCRE (PHP <7.3)
Test regex for question.
Submitted by
pwas
-
9 years ago
2014-09-24 07:59
2
5 upvotes, 3 downvotes (score 30.6%) (You must be signed in to vote)
find numeric groups in strings
PCRE (PHP <7.3)
no description available
Submitted by
Vovan
-
9 years ago
2014-09-24 05:58
1
4 upvotes, 3 downvotes (score 25%) (You must be signed in to vote)
Grab {\w+?} together
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
9 years ago
2014-09-23 11:43
2
2 upvotes, 0 downvotes (score 34.2%) (You must be signed in to vote)
Replace text domain in WP i18n
PCRE (PHP <7.3)
This will find all instances where the WP i18n function __() is used, and change the text domain to something else. This will recognize instances of the function use as separate, even if they appear in the same function
Submitted by
Xedin Unknown
-
9 years ago
2014-09-22 21:03
1
...
462
463
464
465
466
467
468
...
481
Inside single quotes, escape aware
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
Regular Expression
PCRE (PHP <7.3)
/
'
(
(?:
\\
.
|
[^
'
]
)*
+
)
'
/
gm
Open regex in editor
Description
Loading markdown...
Submitted by
Robin
-
10 years ago
2014-03-25 10:03