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,320 community submitted regex patterns...
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Find GraphQL queries with missing id
PCRE (PHP <7.3)
It detects the following ` product { brand` and ignores ` product {...
Submitted by
anonymous
-
6 months ago
2023-03-19 02:26
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Search/Replace Pressure sensor calibration
PCRE (PHP <7.3)
Changing from MPa to Bar
Submitted by
anonymous
-
6 months ago
2023-03-17 09:23
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Replace letters in email address
PCRE (PHP <7.3)
Replace letters in email address but left the first and last letter before and after @
Submitted by
Kaibo
-
6 months ago
2023-03-16 16:00
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Remove all html from string
PCRE (PHP <7.3)
Remove all tags and special character such as
Submitted by
enrico mosca
-
6 months ago
2023-03-14 11:33
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Closes properly self-closing tags in HTML
PCRE (PHP <7.3)
In an HTML will replace all auto-closed tags (/>) with a proper tag closing. It works even if the tag has a closing sign (>) inside an attribute.
Submitted by
nabab
-
7 months ago
2023-03-06 10:28
-2
0 upvotes, 2 downvotes (score 0%) (You must be signed in to vote)
PHP Serialization String Validator
PCRE (PHP <7.3)
PHP serialize / unserialize __sleep __wakeup __serialize __unserialize
Submitted by
Abdullah Pazarbasi
-
7 months ago
2023-03-03 06:10
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Get anything between parentheses
PCRE (PHP <7.3)
Use to get any character, digit or space between parentheses
Submitted by
Vini Pereira
-
7 months ago
2023-02-23 03:07
-1
0 upvotes, 1 downvotes (score 0%) (You must be signed in to vote)
alluse
PCRE (PHP <7.3)
/^(?P0|[1-9]\d)\.(?P0|[1-9]\d)\.(?P0|[1-9]\d)(?:-(?P(?:0|[1-9]\d|\da-zA-Z-)(?:\.(?:0|[1-9]\d|\da-zA-Z-))))?(?:\+(?P[0-9a-zA-Z-]+(?:\.[0-9a-zA-Z-]+)*))?$/gm
Submitted by
alluse
-
7 months ago
2023-02-22 18:30
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Get ip address (only ipv4) Validator
.NET (C#)
Get ip address (only ipv4) Validator
Submitted by
Mr.Tang
-
7 months ago
2023-02-21 12:10
(Last modified 7 months ago)
2023-02-21 12:15
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Get ip address (only ipv6) Validator
.NET (C#)
Get ip address (only ipv6) Validator
Submitted by
Mr.Tang
-
7 months ago
2023-02-20 19:35
(Last modified 7 months ago)
2023-02-21 12:08
2
2 upvotes, 0 downvotes (score 34.2%) (You must be signed in to vote)
Get ip address (only ipv4) Validator
.NET (C#)
Get ip address (only ipv4) Validator
Submitted by
Mr.Tang
-
7 months ago
2023-02-20 18:43
(Last modified 7 months ago)
2023-02-21 12:05
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Function arguments regex
PCRE (PHP <7.3)
A simple regex to match individual arguments of a function.
Submitted by
anonymous
-
7 months ago
2023-02-17 20:14
-2
0 upvotes, 2 downvotes (score 0%) (You must be signed in to vote)
Parsing result of SQL Server version (SELECT @@VERSION)
.NET (C#)
Parses MS SQL Server version returned from executing SELECT @@version
Submitted by
M Rivas
-
7 months ago
2023-02-15 21:12
2
3 upvotes, 1 downvotes (score 30.1%) (You must be signed in to vote)
Mime type parser
.NET (C#)
A "simple" regex to parse mime types. Handles all commonly occurring parts of a mime type string such as: Type Subtype Subtype's with an extra extension (e.g. svg+xml) (Optional input) Multiple parameters (Optional input)...
Submitted by
Vespion
-
7 months ago
2023-02-14 14:11
(Last modified 7 months ago)
2023-02-14 16:03
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
semantic tags
PCRE (PHP <7.3)
semantic tags
Submitted by
anonymous
-
7 months ago
2023-02-14 09:45
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é
-
7 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
-
7 months ago
2023-02-10 22:40
(Last modified 7 months ago)
2023-02-10 22:43
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)
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
1
2
3
4
5
6
...
466
Initials
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Regular Expression
.NET (C#)
@"
(?:
(?=
Medication
|
Administration
|
Record
)
\b
(
.
)
(?>
edication
|
dministration
|
ecord
)
)
"
gs
Open regex in editor
Description
Loading markdown...
Submitted by
Eddie Choong
-
a year ago
2022-10-17 02:13