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 11,280 community submitted regex patterns...
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
LogExpert Regex Columnizer
PCRE (PHP <7.3)
parsing log file
Submitted by
Oddbjørn Haaland, Sander Struijk
-
9 years ago
2014-10-21 11:46
22
59 upvotes, 37 downvotes (score 51.5%) (You must be signed in to vote)
UK Postcode Checker
PCRE (PHP <7.3)
Checks for valid UK/British postcodes. There was another on here that had for some reason been upvoted, but it was actually incorrect as it worked on none of my valid own postcodes! Namely that it assumed two letters and a number (BS3) when you can have variations (M20). Allows for an optional spac...
Submitted by
MaffooBristol
-
9 years ago
2014-10-21 08:23
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
Reg124
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
9 years ago
2014-10-21 07:45
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
RegExExample
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
9 years ago
2014-10-20 13:13
1
2 upvotes, 1 downvotes (score 20.8%) (You must be signed in to vote)
RFC 5322 email validation
PCRE (PHP <7.3)
Unsatisfied with your email validation? Concerned about standards compliance? Worried about that one weird edge case? Want to stress-test your regex engine? This might be the regex for you!
Submitted by
Blake Thomas
-
9 years ago
2014-10-19 19:06
0
2 upvotes, 2 downvotes (score 15%) (You must be signed in to vote)
Domain Name .CZ - only 2th level format
PCRE (PHP <7.3)
Valid only for something.cz, some-thing.cz, 2245exampl.cz ... Not-valid for -some.cz, here.com.cz ...
Submitted by
Pavel Ondřej
-
9 years ago
2014-10-18 10:16
0
1 upvotes, 1 downvotes (score 9.5%) (You must be signed in to vote)
first regex
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
9 years ago
2014-10-17 18:15
3
8 upvotes, 5 downvotes (score 35.5%) (You must be signed in to vote)
everything that doesn't match .gitignore at the end
PCRE (PHP <7.3)
must match: selection/nl/example.xml selection/example.xml selection/blabla.txt selection/es/ ...
Submitted by
anonymous
-
9 years ago
2014-10-17 12:16
0
5 upvotes, 5 downvotes (score 23.7%) (You must be signed in to vote)
Unicode alpha-numeric regex
PCRE (PHP <7.3)
Tests for all unicode language characters and number. Excludes any sentence joining characters etc.
Submitted by
Jamie
-
9 years ago
2014-10-16 12:40
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
External OR operator
PCRE (PHP <7.3)
Why doesn't recognize the second pattern after pipe | ?
Submitted by
Fede e Walter
-
9 years ago
2014-10-16 09:50
0
1 upvotes, 1 downvotes (score 9.5%) (You must be signed in to vote)
search h1 tag html
PCRE (PHP <7.3)
(.*?) example: Your best title
Submitted by
otharwa
-
9 years ago
2014-10-15 15:10
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
codegolf.SE cops&robbers histocrat#2
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
9 years ago
2014-10-15 14:50
0
3 upvotes, 3 downvotes (score 18.8%) (You must be signed in to vote)
Page Hangs in Chrome/Shows TIMEOUT on regex101.com
PCRE (PHP <7.3)
I have a regex like this: /^(A-Za-z0-9)([\.\_]?[A-Za-z0-9-]+)(\.[A-Za-z]{2,6})+(\/A-Za-z+)*$/ and I want to test the string like: webmail.google.com.qqqqqqqqqqqqqqqqqqq....... But it shows TIMEOUT. I know that string is invalid for given regex. But I do this because when I input this string and ma...
Submitted by
sam
-
9 years ago
2014-10-15 14:39
28
77 upvotes, 49 downvotes (score 52.4%) (You must be signed in to vote)
CSV line parsing
PCRE (PHP <7.3)
Captures all fields from a CSV file's line. Can be customized with user-defined field separator and protecting character.
Submitted by
Various
-
9 years ago
2014-10-15 13:22
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
Test for Ross
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
9 years ago
2014-10-15 09:26
1
2 upvotes, 1 downvotes (score 20.8%) (You must be signed in to vote)
nginx log parser
Python
separate nginx log into database table-style fields
Submitted by
wgzhao
-
9 years ago
2014-10-15 09:23
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
how to extract that 87% ??
PCRE (PHP <7.3)
hello, using a monitoring software module from sentrysoftware i want to extract and read that value % (87% ). My chances are to read this line (it's a command output: "/dev/u04omnia_lv 100.00 13.33 87% 57 1% /u04/oradata/OMNIA") by columns (but they aren't columns) or with "befor...
Submitted by
Steve
-
9 years ago
2014-10-14 14:26
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
Tv Series name extractor
Python
Extract from a tv series file the name of the series, the season, episode and the title.
Submitted by
dshinigami
-
9 years ago
2014-10-13 22:02
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
...
541
542
543
544
545
546
547
...
564
e164_basic
-2
1 upvotes, 3 downvotes (score 4.6%) (You must be signed in to vote)
Regular Expression
PCRE (PHP <7.3)
/
^
\+
(?:
[
0
-
9
]
?
){6,14}
[
0
-
9
]
$
/
Open regex in editor
Description
Loading markdown...
Submitted by
anonymous
-
9 years ago
2014-10-21 16:18