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
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 7.0 (C#)
Rust
Sponsors
There are currently no sponsors.
Become a sponsor today!
Community Patterns
Search among 15,300 community submitted regex patterns...
1
Rick Roll
Java 8
Matches chorus of Never Going to Give You Up
Submitted by
Stephen Battista
-
2 years ago
1
HTML body tokenize
PCRE2 (PHP >=7.3)
Tokenize before do other process. We can adapt to use for header tag.
Submitted by
Jakk
-
2 years ago
(Last modified 2 years ago)
1
Telegram Markdown Escaping Backslashed asterisks
ECMAScript (JavaScript)
Telegram Markdown V2's bold (`) can be escaped by using \`. RegExp to validate it and get the actual contents inside.
Submitted by
dcdunkan
-
2 years ago
1
Titanic Kaggle - Remove ticket prefix to get number
PCRE2 (PHP >=7.3)
Removes the prefix leaving just the ticket number
Submitted by
anonymous
-
2 years ago
1
ds100reg4
PCRE (PHP <7.3)
Data 100 Regular Expression 4, adapted from Princeton
Submitted by
anonymous
-
2 years ago
(Last modified 2 years ago)
1
Android Package Validation - Java Regex
Java 8
Note: replace the "\." with "\\." if you paste this on your java. The regex will match if the package name is valid. example: my.new.hello.world.app Supports: a-z 0-9 and underscore Supports multiple dots
Submitted by
dlv_dls2
-
2 years ago
1
Variable, -> "Variable",
PCRE2 (PHP >=7.3)
Add "" to variable before comma
Submitted by
anonymous
-
2 years ago
1
匹配中英文括号
Java 8
可以用来替换企业名称中的中英文括号 eg: 阿里巴巴(中国)股份 阿里巴巴(中国)股份
Submitted by
tuan_luo
-
2 years ago
1
Matching build file names
Java 8
Matches various versions of build file filenames from our jenkins builds
Submitted by
Sean Furrh
-
2 years ago
1
basic
PCRE2 (PHP >=7.3)
rast
Submitted by
anonymous
-
2 years ago
1
Password Complexity
PCRE2 (PHP >=7.3)
Password Complexity 8-32 Characters, AlphaNumeric with OWASP Special Characters
Submitted by
shnwhtn
-
2 years ago
1
gPat
PCRE2 (PHP >=7.3)
This is pre-built Global Pat for FortiSiem
Submitted by
Ken
-
2 years ago
1
Nginx Error Log Parser
PCRE2 (PHP >=7.3)
Parse nginx error logs with tags
Submitted by
anonymous
-
2 years ago
1
Email Match
PCRE2 (PHP >=7.3)
matches on emails.. try it
Submitted by
Singh
-
2 years ago
1
Facebook IDs
Java 8
A general regular expression that uses the keywords 'Facebook' and 'id' to collect strings that contain Facebook IDs. Also, added an additional condition to where if there's a long numeric string it will be match a group given that, 'Facebook' is within the string. This is a special use-case and can...
Submitted by
loganmcampbell
-
2 years ago
1
9 Digit SSN String
Java 8
If for whatever reason there isn't a delimiter within your data to for storing your SSNs you should be able to use this regular expression to capture 9 digit strings within data. You might need to add special keywords to filter out false positives.
Submitted by
loganmcampbell
-
2 years ago
1
Specific Year Dates (Regular Expression)
Java 8
Here's a regular expression to handle a specific year in the different forms of dates: YYYY-MM-DD DD-MM-YYYY MM-DD-YYYY ...
Submitted by
loganmcampbell
-
2 years ago
1
MyKad / Passport
PCRE2 (PHP >=7.3)
This allows only the specified characters to be a valid MyKad or Passport Number in Malaysia.
Submitted by
Munirul Haikal
-
2 years ago
1
Grabbing custom structure from markdown
PCRE2 (PHP >=7.3)
:)
Submitted by
anonymous
-
2 years ago
1
HTML注释
ECMAScript (JavaScript)
HTML注释
Submitted by
anonymous
-
2 years ago
1
...
237
238
239
240
241
...
765
Email Match
1
Regular Expression
PCRE2 (PHP >=7.3)
/
(
(
[
(_)a
-
zA
-
Z0
-
9
\.\-
]
{1,}
)
(
@
)
(
[
a
-
zA
-
Z0
-
9
\-
]
+
)
(
\.
)
(
[
a
-
zA
-
Z
]
{2,3}
)
(
(
\.
)
(
[
a
-
z
]
{2,3}
)
)?
)
/
gm
Open regex in editor
Description
matches on emails.. try it
Submitted by
Singh
-
2 years ago