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,580 community submitted regex patterns...
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
mariadb err.log format
PCRE2 (PHP >=7.3)
extracting Warning , User and Message fileds
Submitted by
anonymous
-
8 months ago
2023-02-13 05:53
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Isolate some string (any caracthers) in between isolators, none or many
PCRE (PHP <7.3)
This expression isolates a string or many strings of any caracthers that are preceded and are followed by a pair of colons in a long text string. Practical for tooltip insertion. Find a word in the string, search in the database, construct the tooltip and insert within the returned string. Use wi...
Submitted by
Marc De Gagné
-
8 months ago
2023-02-12 17:50
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Regex Colon Code For Emoji
PCRE (PHP <7.3)
Groups the ID, and finds the whole colon code
Submitted by
ZackiBoiz
-
8 months ago
2023-02-10 22:40
(Last modified 8 months ago)
2023-02-10 22:43
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
USA phone matcher
PCRE2 (PHP >=7.3)
Regex for matching usa number like: 555-555-5555 (555)555-5555 (555) 555-5555 555 555 5555...
Submitted by
Arif
-
8 months ago
2023-02-10 20:42
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Discord Invite link - Updated
PCRE2 (PHP >=7.3)
Can match 7 variations of invites (the page discord.com/servers/ is included)
Submitted by
Diso
-
8 months ago
2023-02-10 19:09
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
match csrf token
PCRE2 (PHP >=7.3)
Matches the csrf token in the meta data
Submitted by
anonymous
-
8 months ago
2023-02-10 18:54
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Strict URL validation
PCRE2 (PHP >=7.3)
(?!.[.]{2})((https?|http)\:\/\/)?([a-z0-9+!(),;?&=\$.-]+(\:[a-z0-9+!(),;?&=\$.-]+)?@)?([a-z0-9-.-.]?(?!.\/).)\.([a-z]{2,1000})(\:[0-9]{2,5})?(\/([a-z0-9+\$-]\.?)+)\/?(\?a-z+&\$.-)?(#a-z_.-)?
Submitted by
Adwin Raj GP
-
8 months ago
2023-02-10 11:57
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
OmegaT
Java 8
regular expressions used in OmegaT
Submitted by
anonymous
-
8 months ago
2023-02-10 08:09
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
URL Validator (HTTP and HTTPS)
PCRE (PHP <7.3)
Validate one URL HTTP and HTTPS
Submitted by
Joaquim
-
8 months ago
2023-02-09 03:27
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Mysite
PCRE (PHP <7.3)
Hello
Submitted by
anonymous
-
8 months ago
2023-02-09 03:17
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Name with title
PCRE2 (PHP >=7.3)
Name with title
Submitted by
anonymous
-
8 months ago
2023-02-09 00:30
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Parse getopt options from a Bash script
PCRE (PHP <7.3)
This will parse the parameters/arguments that a Bash script when it uses getopt(s). Groups: name,short,long,while Example cases: ...
Submitted by
Spyingwind
-
8 months ago
2023-02-08 21:30
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
CURDEPTH\([^0].*\)
PCRE2 (PHP >=7.3)
CURDEPTH\(.*\)
Submitted by
anonymous
-
8 months ago
2023-02-08 20:35
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
BACassetList
PCRE2 (PHP >=7.3)
Find CMS asset entries in HTML "Table"
Submitted by
anonymous
-
8 months ago
2023-02-08 15:39
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
find specific property of angular component
PCRE2 (PHP >=7.3)
This can be used in vscode to search in your repo if a property has been used in your component. name of component: it-grid name of property selectedItems
Submitted by
Salmin
-
8 months ago
2023-02-08 15:10
(Last modified 8 months ago)
2023-02-08 15:14
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Remove Whitespace
PCRE2 (PHP >=7.3)
no more whitespace
Submitted by
Me
-
8 months ago
2023-02-08 12:18
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
ipv4
PCRE2 (PHP >=7.3)
To check IPv4
Submitted by
anonymous
-
8 months ago
2023-02-08 08:53
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Email
PCRE2 (PHP >=7.3)
This is used for simple email validation
Submitted by
Pritesh
-
8 months ago
2023-02-08 08:40
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Select Content Between Two Strings
PCRE2 (PHP >=7.3)
e.g. style="SOMECSS"
Submitted by
anonymous
-
8 months ago
2023-02-07 14:40
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
MBI Regex
PCRE (PHP <7.3)
validates against the MBI format published by CDC
Submitted by
i410hlr
-
8 months ago
2023-02-07 13:28
1
...
24
25
26
27
28
29
30
...
579
ChromeOS user agent
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Regular Expression
PCRE2 (PHP >=7.3)
/
(
(
(
\w\d
+
|
\w
+
)
(
\W
+
)?
)?
(
\s
+
)?
(
U;
)?
(
\s
+
)?
(
CrOS
|
Cross
|
CrossOS
)
)
(
\s
+
)
(
x86_64
|
x8664
|
x86_x64
|
armv
\d
+
|
aarch
\d
+
|
i
\d
+
|
amd64
)
/
gmi
Open regex in editor
Description
Loading markdown...
Submitted by
anonymous
-
10 months ago
2022-11-28 20:02