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
1
1 upvotes, 0 downvotes (100% like it) (You must be signed in to vote)
python
Extract fields from repository url
It is used to extract fields from the repository URL Works in Python and JS Group1 : protocol (Such as http or https) Group2 : domain (Such as github.com or gitlab.com) Group3: Name space (Such as your personal namespace or project namespace) Group4: Project name (Such as your project name)...
Submitted by
anonymous
-
4 years ago
1
1 upvotes, 0 downvotes (100% like it) (You must be signed in to vote)
python
date_regex
YYYYMMDD YYYY-MM-DD YYYY.MM.DD YYYY/MM/DD YYYY-M-D YYYY.M.D...
Submitted by
anonymous
-
3 years ago
1
1 upvotes, 0 downvotes (100% like it) (You must be signed in to vote)
javascript
E.164 Phone Number Validator
Regex validator for the phone number based on E.164 standard
Submitted by
anonymous
-
4 years ago
1
1 upvotes, 0 downvotes (100% like it) (You must be signed in to vote)
python
NFL Fixtures for links
no description available
Submitted by
anonymous
-
4 years ago
1
1 upvotes, 0 downvotes (100% like it) (You must be signed in to vote)
javascript
移除小程序云函数栈日志中的无效行
使其更已读
Submitted by
anonymous
-
4 years ago
1
1 upvotes, 0 downvotes (100% like it) (You must be signed in to vote)
javascript
look ahead and look behind
find number in string with look behind and look ahead
Submitted by
anonymous
-
4 years ago
1
1 upvotes, 0 downvotes (100% like it) (You must be signed in to vote)
python
Python:Match paragraphs separated by URL
no description available
Submitted by
anonymous
-
4 years ago
1
1 upvotes, 0 downvotes (100% like it) (You must be signed in to vote)
python
Another X / Extra X / X more
Extract phrases meaning "add X more of the previous item"
Submitted by
anonymous
-
4 years ago
1
1 upvotes, 0 downvotes (100% like it) (You must be signed in to vote)
golang
IPv4 private CIDR range RFC1918
Validates that you provide a CIDR in one of the following valid ranges. 0.0.0 – 127.255.255.255 127.0.0.0/8 0.0.0 – 10.255.255.255 10.0.0.0/8 16.0.0 – 172. 31.255.255 172.16.0.0/12 192.168.0.0 – 192.168.255.255 192.168.0.0/16...
Submitted by
David Stockton
-
3 years ago
1
1 upvotes, 0 downvotes (100% like it) (You must be signed in to vote)
python
Audio filename splitter
This Python regex allows you to split an audio filename with the sintax Authors - Title (Text1) [Text2].extension into: Group 1: Authors Group 2: Title Group 3: Text1 Group 4: Text2 Group 5: .extension...
Submitted by
Eche L.A.
-
3 years ago
1
1 upvotes, 0 downvotes (100% like it) (You must be signed in to vote)
javascript
capture production
no description available
Submitted by
anonymous
-
3 years ago
1
1 upvotes, 0 downvotes (100% like it) (You must be signed in to vote)
javascript
Catch react-like components using JS
no description available
Submitted by
anonymous
-
3 years ago
1
1 upvotes, 0 downvotes (100% like it) (You must be signed in to vote)
python
Duco2
no description available
Submitted by
anonymous
-
3 years ago
1
1 upvotes, 0 downvotes (100% like it) (You must be signed in to vote)
javascript
身份证号(2代,18位数字),最后一位是校验位,可能为数字或字符X
身份证号(2代,18位数字),最后一位是校验位,可能为数字或字符X
Submitted by
anonymous
-
3 years ago
1
1 upvotes, 0 downvotes (100% like it) (You must be signed in to vote)
javascript
身份证号, 支持1/2代(15位/18位数字)
身份证号, 支持1/2代(15位/18位数字)
Submitted by
anonymous
-
3 years ago
1
1 upvotes, 0 downvotes (100% like it) (You must be signed in to vote)
javascript
ES6 Imports/exports/dynamic: Getting the paths
It will match the paths of js modules imports, exports and dynamic imports.
Submitted by
anonymous
-
3 years ago
1
1 upvotes, 0 downvotes (100% like it) (You must be signed in to vote)
python
Using a Non-Capturing Group (regex + python)
Using a Non-capturing Group: regex + python This question was asked on stackoverflow and it appeared that the best way to match the expression will be to use a non-capturing group. [#so-question]: https://stackoverflow.com/questions/61882072/python-regex-findall-function-only-returning-matchings-o...
Submitted by
anonymous
-
3 years ago
1
1 upvotes, 0 downvotes (100% like it) (You must be signed in to vote)
python
Any decimal numbers (floats, integers, with "." and "," with e)
Matches: integers [+-]?\d+(Ee?\d+)? like +45 or 96E-3 or -12e+24 floats starting from "." or "," like -.45e-3 floats starting from \d like 3.14 or -0.67E12
Submitted by
anonymous
-
3 years ago
1
1 upvotes, 0 downvotes (100% like it) (You must be signed in to vote)
python
Simple, universal and short regex to find quoted strings. Invalid quotes inside string ignored. flag s (single-line) allows to find multiline strings
'string in simple quotes' "in double-quotes" in back-quotes "Works good with symbols ' or " or ` inside the string" "All another type quotes "' inside string are ignored" use something like \ or \" or \' " Matches only identical quotes on string start and end ' // regex can`t find this...
Submitted by
V. Martian
-
3 years ago
1
1 upvotes, 0 downvotes (100% like it) (You must be signed in to vote)
golang
Traefik stripprefixregex for web apps
Notes: Do not forget to escape the $ by an additional $. Escaping ? like \? does not work. But you could use [?] instead End result should be like this: "traefik.http.middlewares.r6tt-dev-web.stripprefixregex.regex=^/[a-z0-9/]+[a-z0-9]+([?]+.*)?$$"...
Submitted by
anonymous
-
3 years ago
1
...
233
234
235
236
237
238
239
...
287
GCS streams file
Vote
1
1 upvotes, 0 downvotes (100% like it) (You must be signed in to vote)
Regular Expression
javascript
/
^
spotify
\/
streams
\/
\d
{8}
\/
[
A
-
Z
]
{2}
_streams_
\d
{8}
\.
csv
/
gm
Open regex in editor
Description
Loading markdown...
Submitted by
anonymous
- 3 years ago