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)
test
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
9 years ago
2014-08-27 14:32
0
1 upvotes, 1 downvotes (score 9.5%) (You must be signed in to vote)
seasons
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
9 years ago
2014-08-26 12:21
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
Extracting Numbers
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
9 years ago
2014-08-26 08:41
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
sushiroles
PCRE (PHP <7.3)
some sushi role
Submitted by
anonymous
-
9 years ago
2014-08-26 00:42
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
Test prioritized match
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
9 years ago
2014-08-23 16:27
-3
1 upvotes, 4 downvotes (score 3.6%) (You must be signed in to vote)
mama
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
9 years ago
2014-08-22 02:48
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
test
PCRE (PHP <7.3)
no description available
Submitted by
Honza BÅ™eÄka
-
9 years ago
2014-08-21 17:25
1
2 upvotes, 1 downvotes (score 20.8%) (You must be signed in to vote)
Recursive Search
PCRE (PHP <7.3)
Proof of concept to omit restriction with '' http://stackoverflow.com/questions/15584634/about-php-regexp-for-recursive-pattern?answertab=oldest#tab-top http://stackoverflow.com/questions/25408579/regex-to-match-blocks-inside-blocks
Submitted by
themroc
-
9 years ago
2014-08-21 15:30
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
Recursive search
PCRE (PHP <7.3)
Proof of concept to omit restriction with '' http://stackoverflow.com/questions/15584634/about-php-regexp-for-recursive-pattern?answertab=oldest#tab-top http://stackoverflow.com/questions/25408579/regex-to-match-blocks-inside-blocks
Submitted by
themroc
-
9 years ago
2014-08-21 15:26
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
Recursive search
PCRE (PHP <7.3)
Proof of concept to omit restriction with '' http://stackoverflow.com/questions/15584634/about-php-regexp-for-recursive-pattern?answertab=oldest#tab-top http://stackoverflow.com/questions/25408579/regex-to-match-blocks-inside-blocks
Submitted by
themroc
-
9 years ago
2014-08-21 15:19
2
5 upvotes, 3 downvotes (score 30.6%) (You must be signed in to vote)
SFTP or FTP url
PCRE (PHP <7.3)
Parse an SFTP or FTP url and brak it into named capture groups.
Submitted by
Cullen Johnson
-
9 years ago
2014-08-20 21:43
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Regular Expression Help!
PCRE (PHP <7.3)
Stuck trying to key of Number of Failed BGPs to return the result in the next ' line.
Submitted by
anonymous
-
9 years ago
2014-08-20 14:09
13
53 upvotes, 40 downvotes (score 46.8%) (You must be signed in to vote)
regex101.com id grabber
PCRE (PHP <7.3)
grabs the ID for the regex101.com permalink to code
Submitted by
chris mccoy
-
9 years ago
2014-08-19 16:10
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
Escape non-Ascii Character
PCRE (PHP <7.3)
Replace non-ascii characters with empty spaces.
Submitted by
Huchister
-
9 years ago
2014-08-18 17:23
1
7 upvotes, 6 downvotes (score 29.1%) (You must be signed in to vote)
Matching Multiline Strings in Large Text File
PCRE (PHP <7.3)
Need Help, Matching Multiline Strings in Large Text File
Submitted by
jholderman
-
9 years ago
2014-08-16 17:49
0
1 upvotes, 1 downvotes (score 9.5%) (You must be signed in to vote)
too greedy +
PCRE (PHP <7.3)
I would like to make that pattern match word char followed by plus folowed by few word chars and followed by another word char and plus. Both word chars followed by plus have to be optional. The problem is that + in middle part takes as much chars as it can and last part never matches (for example s...
Submitted by
Nel
-
9 years ago
2014-08-16 15:20
-1
4 upvotes, 5 downvotes (score 18.9%) (You must be signed in to vote)
Find html tag opening for tag with specific class.
PCRE (PHP <7.3)
I needed a regex to find the opening location of an html tag with a specific class. It is ugly, and it relies on many false assumtions, yet be honest, this will work in most cases. Also checks if the tag is in a line that is commented out. Again, we wont know if it is commented out if it is done on ...
Submitted by
Stack overflow Superspy
-
9 years ago
2014-08-16 12:05
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
foobar
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
9 years ago
2014-08-15 13:19
6
25 upvotes, 19 downvotes (score 42.2%) (You must be signed in to vote)
json
PCRE (PHP <7.3)
{1:aa,2:bb,3:"aa:bb"}
Submitted by
suat & umut
-
9 years ago
2014-08-14 17:30
1
5 upvotes, 4 downvotes (score 26.7%) (You must be signed in to vote)
json
PCRE (PHP <7.3)
no description available
Submitted by
suat & umut
-
9 years ago
2014-08-14 17:28
1
...
465
466
467
468
469
470
471
...
481
log4j log parsing
2
3 upvotes, 1 downvotes (score 30.1%) (You must be signed in to vote)
Regular Expression
PCRE (PHP <7.3)
/
(?<time>
\d
{4}
-
\d
{2}
-
\d
{2}
\d
{2}
:
\d
{2}
:
\d
{2}
,
\d
{3}
)
(?<level>
\S
*
)
(?<processor>
\S
*
)
(?<serviceLayer>
\S
*
)
:
(?<lineNumber>
\d
*
)
-
(?<mess>
.
*
)
/
g
Open regex in editor
Description
Loading markdown...
Submitted by
Robin Kearney
-
9 years ago
2014-08-31 13:04