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 11,420 community submitted regex patterns...
0
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
-
a year ago
0
My Regex Expression
Python
I'm a new learner and I try to learn in coding & data analyst in web. And also need some financial support as well. I thank to you all when I get chance to learn from you all.
Submitted by
anonymous
-
a year ago
0
Mysite
PCRE (PHP <7.3)
Hello
Submitted by
anonymous
-
a year ago
0
cuda with gpu-number regex
Python
Used for torch.device handling, so 'cuda' and 'cuda:0' both valid and can be used
Submitted by
Ilya Lubenets
-
a year ago
(Last modified a year ago)
0
Regex Colon Code For Emoji
PCRE (PHP <7.3)
Groups the ID, and finds the whole colon code
Submitted by
ZackiBoiz
-
a year ago
(Last modified a year ago)
0
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é
-
a year ago
-1
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
-
a year ago
0
Content inside string
Python
Will match any character inside " or '
Submitted by
anonymous
-
a year ago
0
semantic tags
PCRE (PHP <7.3)
semantic tags
Submitted by
anonymous
-
a year ago
0
non capturing (a|b|c)가 그룹으로 지정되지 않게 함.
Python
\[[0-9]{4}-[0-9]{2}-[0-9]{2}\](\[(?:debug|warning|error)\]).*
Submitted by
anonymous
-
a year ago
0
WIP detector
Python
Detect WIP strings in a git commit.
Submitted by
anonymous
-
a year ago
-2
Parsing result of SQL Server version (SELECT @@VERSION)
.NET 7.0 (C#)
Parses MS SQL Server version returned from executing SELECT @@version
Submitted by
M Rivas
-
a year ago
0
match tree output
Python
replace tree-like intandents to any others like hashtags or spaces
Submitted by
anonymous
-
a year ago
0
2 parameters split by comma or arbitrary whitespace
Python
title
Submitted by
Sam Wagenaar
-
a year ago
0
Assembler Instruction
Python
Match double-argument assembler instructions, extracting opcode, operand_src, and operand_dst
Submitted by
Sam Wagenaar
-
a year ago
0
Spring Boot default log parser regex
Python
Parses default spring boot logs and capture the following groups: i. ISO Timestamp, ii. Log Level, iii. Process ID (PID), iv. Thread name, v. Logger name, and vi. Log message
Submitted by
Snehangshu Bhattacharya
-
a year ago
0
Function arguments regex
PCRE (PHP <7.3)
A simple regex to match individual arguments of a function.
Submitted by
anonymous
-
a year ago
0
sentence with colon regex
Python
[\S\w]+\s?:\s?[\S▁]+
Submitted by
wb
-
a year ago
0
Name RegEx
Python
Separate first and last names. Capitalization matters. Ignore middle initials but allow middle names. Multiple last names may be mistaken for middle names. Groups could be changed to capture middle names separately, middle initials, etc.
Submitted by
anonymous
-
a year ago
0
Get ip address (only ipv6) Validator
.NET 7.0 (C#)
Get ip address (only ipv6) Validator
Submitted by
Mr.Tang
-
a year ago
(Last modified a year ago)
1
...
563
564
565
566
567
...
571
URL Validation
0
Regular Expression
.NET 7.0 (C#)
@"
^
(?=
(?<http>
(?:
https
?
:
\/\/
){1}
(?:
www
\.
)?
)?
)
(?
(?=
\k<http>
?
(?<ipaddr>
(?:
\d
{1,3}
\.
){3}
\d
{1,3}
(?:
\:
\d
{1,5}
)?
)
)
\k<http>
?
\k<ipaddr>
(?:
\.
[
\w
]
{1,9}
)?
|
\k<http>
(?:
[
\w
]
\.
?
){1,255}
\.
[
\w
]
{1,9}
)
(?:
\/
.
*
)?
$
"
gm
Open regex in editor
Description
Can be used to validate on URL's.
Submitted by
anonymous
-
a year ago