Regular
Expressions
101
Please wait while the app is loading...
Please enable JavaScript to use this web application.
Regular
Expressions
101
@regex101
Donate
Sponsor
Contact
Bug Reports & Feedback
Wiki
What's new?
What's new?
Loading content...
Close
Regex Editor
Regex Editor
Regex Library
Regex Library
Account
Account
Regex Quiz
Regex Quiz
Settings
Settings
Live Help
Live Help
Order By
Most Recent
Most Points
Fewest Points
Filter by Flavor
PCRE2
PCRE
ECMAScript
Python
Golang
Java
.NET
Sponsors
All your environment variables, in one place
Library entries
Search library
0
0 upvotes, 0 downvotes (0% like it) (You must be signed in to vote)
javascript
Commafication (this BREAKS ON APPLE DEVICES!!!!)
Commafy any number! 30000 = 30,000 303123 = 303,123 999888777 = 999,888,777
Submitted by
Mendel Groner
-
a month ago
0
0 upvotes, 0 downvotes (0% like it) (You must be signed in to vote)
python
SparkplugB Topic Pattern
SparkplugB has a specific pattern to the MQTT topic string. Included here is the convention of metrics as a continuation of the topic string (although as an element in the binary payload it is not!)
Submitted by
null-directory
-
a month ago
0
0 upvotes, 0 downvotes (0% like it) (You must be signed in to vote)
pcre
Example 1.1: Pet Name
Example used in slide 39
Submitted by
anonymous
-
a month ago
0
0 upvotes, 0 downvotes (0% like it) (You must be signed in to vote)
python
auto-gpt command google
auto-gpt command google returned
Submitted by
anonymous
-
a month ago
0
0 upvotes, 0 downvotes (0% like it) (You must be signed in to vote)
javascript
Unicode Email Validation
Unicode Email Validation
Submitted by
anonymous
-
a month ago
0
0 upvotes, 0 downvotes (0% like it) (You must be signed in to vote)
golang
匹配限定后缀名的文件,忽略大小写
匹配.mka后缀名的文件,忽略大小写
Submitted by
anonymous
-
a month ago
0
0 upvotes, 0 downvotes (0% like it) (You must be signed in to vote)
golang
匹配限定后缀名中的指定关键字,忽略大小写
匹配.mkv和.mp4后缀名中包含menu或sp或.sample,忽略大小写
Submitted by
anonymous
-
a month ago
0
0 upvotes, 0 downvotes (0% like it) (You must be signed in to vote)
javascript
hsl colors
matches many HSL and HSLA formats permitted in CSS
Submitted by
anonymous
-
a month ago
0
0 upvotes, 0 downvotes (0% like it) (You must be signed in to vote)
pcre
i++ in bash
asdf
Submitted by
anonymous
-
a month ago
0
0 upvotes, 0 downvotes (0% like it) (You must be signed in to vote)
python
auto-gpt- parse system cmd
auto-gpt- parse system cmd
Submitted by
anonymous
-
a month ago
1
1 upvotes, 0 downvotes (100% like it) (You must be signed in to vote)
golang
golang re2 negative lookahead
Aquivalent solution for golang's unsupported negative lookahead in re2 flavor of go's regex. This example provides a negative lookahead similar to (?!/api/) ignoring routes with the /api/ prefix at the start.
Submitted by
misha
-
2 months ago
0
0 upvotes, 0 downvotes (0% like it) (You must be signed in to vote)
python
autogpt-parse next-action
autogpt-parse next-action
Submitted by
anonymous
-
2 months ago
0
0 upvotes, 0 downvotes (0% like it) (You must be signed in to vote)
python
auto-gpt-parse next-action
auto-gpt-parse next-action
Submitted by
anonymous
-
2 months ago
0
0 upvotes, 0 downvotes (0% like it) (You must be signed in to vote)
python
auto-gpt-THOUGHTS block
auto-gpt-THOUGHTS block
Submitted by
anonymous
-
2 months ago
0
0 upvotes, 0 downvotes (0% like it) (You must be signed in to vote)
python
autogpt-system-command-parse
autogpt-system-command-parse
Submitted by
anonymous
-
2 months ago
0
0 upvotes, 0 downvotes (0% like it) (You must be signed in to vote)
javascript
Extract email from - Add "email"
Replace Add "xyz@abc.com" with xyz@abc.com
Submitted by
anonymous
-
2 months ago
0
0 upvotes, 0 downvotes (0% like it) (You must be signed in to vote)
javascript
Email address supporting plus addressing and multiple subdomains.
This expression follows the rules displayed at https://knowledge.validity.com/hc/en-us/articles/220560587-What-are-the-rules-for-email-address-syntax-. Note that their rules DO NOT exactly match those of the applicable RFC 5322 (sections 3.2.3 and 3.4.1) and RFC 5321, but rather supports a pattern ...
Submitted by
Eric Bewley
-
2 months ago
0
0 upvotes, 0 downvotes (0% like it) (You must be signed in to vote)
python
Extract structure from dates
1-12 / 2022
Submitted by
anonymous
-
2 months ago
0
0 upvotes, 0 downvotes (0% like it) (You must be signed in to vote)
python
tacacs legacy server definition: sentence and parts
This query extract the entire tacacs legacy configuration by servers and divide its parts on groups
Submitted by
anonymous
-
2 months ago
0
0 upvotes, 0 downvotes (0% like it) (You must be signed in to vote)
python
auto-gpt capture command
auto-gpt capture command
Submitted by
anonymous
-
2 months ago
1
2
3
4
5
6
7
...
741
Removing port number from URL
Vote
0
0 upvotes, 0 downvotes (0% like it) (You must be signed in to vote)
Regular Expression
javascript
/
(
https
?
:
\/\/
.
*
)
(
:
\d
*
)
\/
?
(
.
*
)
/
gm
Open regex in editor
Description
Loading markdown...
Submitted by
M Rivas
- 4 months ago