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,420 community submitted regex patterns...
3
3 upvotes, 0 downvotes (score 43.8%) (You must be signed in to vote)
Forum user validation
PCRE (PHP <7.3)
Pedro al DAMS
Submitted by
giacomo
-
8 years ago
2015-09-03 10:07
3
3 upvotes, 0 downvotes (score 43.8%) (You must be signed in to vote)
Nombres 4 chiffres
PCRE (PHP <7.3)
Nombres 4 chifres
Submitted by
EA
-
8 years ago
2015-09-07 21:55
3
3 upvotes, 0 downvotes (score 43.8%) (You must be signed in to vote)
Shortcode parser
PCRE (PHP <7.3)
Parse shortcodes, its attributes values and html
Submitted by
anonymous
-
8 years ago
2015-09-11 10:12
3
3 upvotes, 0 downvotes (score 43.8%) (You must be signed in to vote)
Arrow function to Normal function
ECMAScript (JavaScript)
Convert Arrow Function to Normal Function
Submitted by
Abhisek Pattnaik
-
8 years ago
2015-09-13 17:51
3
3 upvotes, 0 downvotes (score 43.8%) (You must be signed in to vote)
SemVer chain parsing
ECMAScript (JavaScript)
no description available
Submitted by
anonymous
-
8 years ago
2015-09-18 09:48
3
3 upvotes, 0 downvotes (score 43.8%) (You must be signed in to vote)
POST OFFICE BOX
PCRE (PHP <7.3)
no description available
Submitted by
jmweekes
-
8 years ago
2015-09-20 21:54
3
3 upvotes, 0 downvotes (score 43.8%) (You must be signed in to vote)
Camel case to space-separated string
PCRE (PHP <7.3)
Takes any camel case and returns it plus spaces.
Submitted by
Rougeware
-
8 years ago
2015-09-21 20:34
3
3 upvotes, 0 downvotes (score 43.8%) (You must be signed in to vote)
BOOLEAN EXPRESSION WITH BRACKETS MATCHER
PCRE (PHP <7.3)
comapre simbols used just !=, ==, =, beacose of task keyword "not" can be used only before leftside value beacose of task
Submitted by
Ilya Filisteev
-
8 years ago
2015-09-22 14:55
3
3 upvotes, 0 downvotes (score 43.8%) (You must be signed in to vote)
ln -l linux parse
PCRE (PHP <7.3)
parse linux ln -l output command
Submitted by
guignol95
-
8 years ago
2015-09-23 17:42
3
3 upvotes, 0 downvotes (score 43.8%) (You must be signed in to vote)
yyyy-MM-dd hh:MM
ECMAScript (JavaScript)
date format for "yyyy-MM-dd hh:MM" valid strict model.
Submitted by
image72
-
8 years ago
2015-09-28 13:36
3
3 upvotes, 0 downvotes (score 43.8%) (You must be signed in to vote)
MySQL Full-Text BOOLEAN mode
PCRE (PHP <7.3)
Checks if an input string is compatible with the BOOLEAN mode of MySQL full text search system
Submitted by
greezybacon
-
8 years ago
2015-10-01 01:47
3
3 upvotes, 0 downvotes (score 43.8%) (You must be signed in to vote)
Get bad iframe (with white-list)
PCRE (PHP <7.3)
In (?!www.youtube.com\/|youtube.com\/|player.vimeo.com\/) u can add good sites for iframes: www.youtube.com/ player.vimeo.com/
Submitted by
Resager
-
8 years ago
2015-10-06 01:02
3
3 upvotes, 0 downvotes (score 43.8%) (You must be signed in to vote)
coffeescript operator
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
8 years ago
2015-10-22 07:37
3
3 upvotes, 0 downvotes (score 43.8%) (You must be signed in to vote)
Extract Java Exception Message Field
PCRE (PHP <7.3)
Exception Message: java.lang.NullPointerException: Sample Java Logback Exception at Sample.errorLevel3(Sample.java:35) at Sample.errorLevel2(Sample.java:31) at Sample.errorLevel1(Sample.java:27)...
Submitted by
Amit
-
8 years ago
2015-11-10 08:51
3
3 upvotes, 0 downvotes (score 43.8%) (You must be signed in to vote)
Match text in square brackets
PCRE (PHP <7.3)
Drupal7 Media Element in node body - A regex to match the media module square bracketted token/element for embedde images in node body. Use case - using the body text trimmed in a meta description - need to remove the media element as well as strip tags.
Submitted by
iAugur
-
8 years ago
2015-11-25 14:03
3
3 upvotes, 0 downvotes (score 43.8%) (You must be signed in to vote)
Get Headings From Markdown Format
ECMAScript (JavaScript)
Get all headings in a Markdown Format Text
Submitted by
Ferdinand Dimas
-
8 years ago
2015-11-30 04:23
3
3 upvotes, 0 downvotes (score 43.8%) (You must be signed in to vote)
Get Hyperlinks From Markdown Format
PCRE (PHP <7.3)
Get all hyperlinks in a Markdown Format Text
Submitted by
Ferdinand Dimas
-
8 years ago
2015-11-30 04:28
3
3 upvotes, 0 downvotes (score 43.8%) (You must be signed in to vote)
Récupérer la bonne information
PCRE (PHP <7.3)
Groupe d'information $1 $2 $3 $1 = Prénom + Nom $2 = (Information à récupérer ou à supprimer) $3 = Numéro de téléphone
Submitted by
Terence DEMOL
-
8 years ago
2015-12-01 15:08
3
3 upvotes, 0 downvotes (score 43.8%) (You must be signed in to vote)
Removes duplicate lines in text editor
PCRE (PHP <7.3)
"dot matches newline" must be activated. Search and replace by "" (empty string) removes duplicate lines anywhere in text. Example for Notepad++ use shown under http://stackoverflow.com/questions/3958350/removing-duplicate-rows-in-notepad
Submitted by
Stackoverflow user stema
-
8 years ago
2015-12-04 13:34
3
3 upvotes, 0 downvotes (score 43.8%) (You must be signed in to vote)
Remove br tags inside anchor tags
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
8 years ago
2015-12-15 17:36
1
...
7
8
9
10
11
12
13
...
871
tas-branch-validation
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Regular Expression
Java 8
"
^
(?<branchType>
hotfix
|
feature
|
maint
)
\/
(?<tasMaMi>
(?:
0
|
[
1
-
9
]
\d
*
)
\.
(?:
0
|
[
1
-
9
]
\d
*
)
(?<isTest>
-test
)?
)
\/
(?<branchName>
[
\w
\-\.
\d
]
{1,30}
)
$
"
gm
Open regex in editor
Description
Loading markdown...
Submitted by
doron-hafner
-
9 months ago
2023-03-16 10:07