Please enable JavaScript to use this web application.
Regular
Expressions
101
Social
Donate
Info
Regex Editor
Community Patterns
Account
Regex Quiz
Settings
Order By
Most Recent
Most upvotes
Most downvotes
Highest Score
Lowest Score
Filter by Flavor
PCRE2 (PHP >=7.3)
PCRE (PHP <7.3)
ECMAScript (JavaScript)
Python
Golang
Java 8
.NET 7.0 (C#)
Rust
Sponsors
There are currently no sponsors.
Become a sponsor today!
Community Patterns
Search among 18,020 community submitted regex patterns...
1
LogExpert Regex Columnizer
PCRE (PHP <7.3)
parsing log file
Submitted by
Oddbjørn Haaland, Sander Struijk
-
10 years ago
22
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
-
10 years ago
1
Reg124
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
10 years ago
7
if, else if, else condtion match
ECMAScript (JavaScript)
matches full if condition statment eg: if(condition){ ... } else if(condition){ ... }else{...
Submitted by
Ivan Jakesevic
-
10 years ago
1
RegExExample
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
10 years ago
1
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
-
10 years ago
0
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
-
10 years ago
0
first regex
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
10 years ago
3
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
-
10 years ago
2
Positive Numbers greater than 0 with leading zeroes.
ECMAScript (JavaScript)
Accepts all positive numbers above 0. Accepts numbers with leading zeroes e.g.: 0123, 00123.
Submitted by
Sandeep Ranka
-
10 years ago
0
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
-
10 years ago
1
External OR operator
PCRE (PHP <7.3)
Why doesn't recognize the second pattern after pipe | ?
Submitted by
Fede e Walter
-
10 years ago
0
search h1 tag html
PCRE (PHP <7.3)
(.*?) example: Your best title
Submitted by
otharwa
-
10 years ago
1
codegolf.SE cops&robbers histocrat#2
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
10 years ago
0
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
-
10 years ago
29
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
-
10 years ago
1
Get the command
ECMAScript (JavaScript)
Simply gets the command from a script command, automatically removes unwanted spaces.
Submitted by
anonymous
-
10 years ago
1
Simple script command and parameter grabber
ECMAScript (JavaScript)
no description available
Submitted by
anonymous
-
10 years ago
1
Test for Ross
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
10 years ago
1
nginx log parser
Python
separate nginx log into database table-style fields
Submitted by
wgzhao
-
10 years ago
1
...
874
875
876
877
878
...
901
Community Library Entry
1
Regular Expression
PCRE (PHP <7.3)
/
(
(
(
a
|
b
)*
aa
(
a
|
b
)*
)
|
(
(
a
|
b
)*
aa
(
a
|
b
|
c
)*
)
)
/
Open regex in editor
Description
Why doesn't recognize the second pattern after pipe | ?
Submitted by
Fede e Walter
-
10 years ago