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)
Movies title extractor
PCRE (PHP <7.3)
Extract the title from a movie file
Submitted by
dshinigami
-
9 years ago
2014-10-13 22:00
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
Proper-case word separator
PCRE (PHP <7.3)
Takes a string like 'ImageEditHRStuffSomeMOREStuff' and produces -> 'Image Edit HR Stuff Some MORE Stuff'
Submitted by
Michael Keyser
-
9 years ago
2014-10-13 16:17
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
parse salesforce records
PCRE (PHP <7.3)
parse one column query from sf developer console
Submitted by
anonymous
-
9 years ago
2014-10-10 19:15
3
6 upvotes, 3 downvotes (score 35.4%) (You must be signed in to vote)
Fetch data between curly braces with plain text
PCRE (PHP <7.3)
This regex fetch only the data between content in curly braces (first occurrence, use preg_match_all in php, for all occurrences). This is useful for bad JSON files with wrong format or text between.
Submitted by
shakaran87
-
9 years ago
2014-10-10 13:35
1
2 upvotes, 1 downvotes (score 20.8%) (You must be signed in to vote)
unity3d.com csharp lint regex
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
9 years ago
2014-10-08 18:18
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
ewqewq
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
9 years ago
2014-10-08 13:36
0
2 upvotes, 2 downvotes (score 15%) (You must be signed in to vote)
Hostname-Match not found
PCRE (PHP <7.3)
I'm trying to match a hostname input with the following properties: a-z A-Z 0-9 : - are allowed ; doesnot start or end with - ; "." can be used to separate different labels of the hostname. But gives no match for this regex: ^(a-zA-Z0-9|(?<!-)\.(?![-.]))[a-zA-Z0-9]+)?)$...
Submitted by
Revathy
-
9 years ago
2014-10-08 11:52
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
group & access several lines
PCRE (PHP <7.3)
Hi there, I try to learn and improve my regex knowledge... I want to fetch all lines below the "="-line and between the "-"-lines and access them via $1 - $n. Is this possible? Or should I fetch the whole string below the "="-line and the last "-"-line, then seperate the lines after that in another...
Submitted by
Floffy
-
9 years ago
2014-10-07 23:13
2
3 upvotes, 1 downvotes (score 30.1%) (You must be signed in to vote)
fail2ban real expression for w00tw00t
PCRE (PHP <7.3)
A real fai2ban expression for w00tw00t with alias substitution
Submitted by
MarcD
-
9 years ago
2014-10-07 21:08
5
19 upvotes, 14 downvotes (score 40.8%) (You must be signed in to vote)
Separate words (works with spaces, dashes and underscores)
PCRE (PHP <7.3)
no description available
Submitted by
marcoslhc
-
9 years ago
2014-10-07 17:30
5
5 upvotes, 0 downvotes (score 56.6%) (You must be signed in to vote)
Find All Python imports
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
9 years ago
2014-10-07 12:03
3
7 upvotes, 4 downvotes (score 35.4%) (You must be signed in to vote)
php input:date yyyy-mm-dd
PCRE (PHP <7.3)
improved "Ahmed Z" regexp. PHP date format (and input[type=text] format date too): YYYY-MM-DD. Year between [1900-2099]. No leap year check. Month 02 is limited to 29 days.
Submitted by
Oropesa
-
9 years ago
2014-10-06 11:58
2
2 upvotes, 0 downvotes (score 34.2%) (You must be signed in to vote)
PAN verification regex
PCRE (PHP <7.3)
Regex to verify PAN in India
Submitted by
Anirban
-
9 years ago
2014-10-06 11:04
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
Test
PCRE (PHP <7.3)
test
Submitted by
royskatt
-
9 years ago
2014-10-05 11:32
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
1
...
461
462
463
464
465
466
467
...
481
Test
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
Regular Expression
PCRE (PHP <7.3)
/
^\s
*
(
(
P
(
OST
)?
.
?
\s
*
(
O
(
FF
(
ICE
)?)?
)?
.
?
\s
+
(
B
(
IN
|
OX
)
)?
)
|
B
(
IN
|
OX
)
)
/
i
Open regex in editor
Description
Loading markdown...
Submitted by
anonymous
-
9 years ago
2014-09-04 20:00