Please enable JavaScript to use regex101
Regular
Expressions
101
Support Regex101
Social
Info
Regex Editor
Community Patterns
Account
Regex Quiz
Settings
Order By
Most Recent
Most upvotes
Most downvotes
Highest Score
Lowest Score
Filter by Flavor
PCRE2 (PHP)
ECMAScript (JavaScript)
Python
Golang
Java
.NET 7.0 (C#)
Rust
PCRE (Legacy)
Sponsors
There are currently no sponsors.
Become a sponsor today!
Community Patterns
Search among 18,300 community submitted regex patterns...
0
r/ProgrammerHumor comment regex
Created
·
2023-07-09 17:24
Flavor
·
Python
A regex that matches comments that adhere to the rules of r/ProgrammerHumor
Submitted by
anonymous
0
Html tag match
Created
·
2023-07-10 06:59
Flavor
·
ECMAScript (JavaScript)
Html tag match
Submitted by
anonymous
0
Valid Emmet Candidate before Expansion
Created
·
2023-07-10 10:41
Updated
·
2023-07-13 03:17
Flavor
·
PCRE2 (PHP)
ul>(li2>a{link$@-})2 is a valid string that can be expanded by Emmet, while `` is not.
Submitted by
Chattille
0
Library catalogue (VTECH V-Lib)
Created
·
2023-07-11 02:22
Flavor
·
Python
Matches entries in a library catalogue.
Submitted by
anonymous
0
ejemplo 2
Created
·
2023-07-11 09:37
Flavor
·
PCRE2 (PHP)
este es el ejemplo de Expr numero 2
Submitted by
anonymous
0
Match path that starts with
Created
·
2023-07-11 11:37
Updated
·
2023-07-13 07:57
Flavor
·
ECMAScript (JavaScript)
In my nuxt automation I want to remove src from path because nuxt don't have src dir. hence I want to remove src prefix from all path
Submitted by
JD Solanki
0
Tracking Number Recognition and Parsing
Created
·
2023-07-12 16:54
Flavor
·
PCRE (Legacy)
T
Submitted by
anonymous
0
reuse-patterns-using-capture-groups
Created
·
2023-07-13 03:14
Flavor
·
ECMAScript (JavaScript)
resolving the free code camp reuse-patterns-using-capture-groups problem let repeatNum = "42 42 42"; let reRegex = /^(\d+)([" "])\1\2\1$/; ^ starts with (\d+) a digit with at least one char (or else will count spaces) and have a([" "])(space) after the digit and \1 to repeat the digit \2to repeat the space \1 to repeat the digit regex again and $ to garan it will stop after encountering a char different than the digit.
Submitted by
gabriel silva lima
0
Additional
Created
·
2023-07-13 07:57
Updated
·
2023-07-19 09:43
Flavor
·
PCRE (Legacy)
Splitting Additionalname in Basename and Specification
Submitted by
JK
0
use-capture-groups-to-search-and-replace
Created
·
2023-07-13 14:44
Flavor
·
ECMAScript (JavaScript)
(\w+)(\s)(\w+)\2(\w+) in this exercise we have to use capture groups and then replace the string order to 'three two one'. But first, when you are using the capture group you may have asked yourself why the code below does not work: (\w+)(\s)\1\2\1 to match the sting "one two three" this is because when you do a matching group he turns himself into a variable that capture the last value from regex and try to match again the same value not the regex itself. In the assertion above, were not simple doing : ` one two three (\w+)(\s)\1\2\1 = (\w+)(\s)(\w+)(\s)(\w+) word space word space word ` but we're doing: ` one two three (\w+)(\s)\1\2\1 one space one space one ` because the \1 aways will return the value 'one' and try to match it. So to resolve this, you have to have a capture group for EACH different word.
Submitted by
gabriel silva lima
0
Regex many
Created
·
2023-07-27 19:11
Flavor
·
PCRE2 (PHP)
Search and change many regex matches
Submitted by
anonymous
0
BDO client ID
Created
·
2023-07-28 12:58
Flavor
·
PCRE2 (PHP)
Validates client IDs
Submitted by
anonymous
0
Splitting Inconsistent Addresses
Created
·
2023-07-28 16:45
Flavor
·
PCRE2 (PHP)
This pattern matches inconsistent addresses that have various street names and coordinates. This captures the Address 1 & 2, Type of Street, Coordinates (NE, NW, SE,SW) City, State, and Full zip
Submitted by
Nadira S Fant
0
Salesforce - Flow Naming Conventions
Created
·
2023-07-28 17:37
Updated
·
2023-07-28 18:34
Flavor
·
PCRE2 (PHP)
Ensure that Salesforce Flow name meets the following standards: - -
Submitted by
anonymous
0
Validate comma-separated list of values (allowed: words; digits; special characters; single non-trailing non-leading spaces;)
Created
·
2023-07-31 07:50
Flavor
·
PCRE2 (PHP)
Validate comma-separated list of values (allowed: words; digits; special characters; single non-trailing non-leading spaces;)
Submitted by
anonymous
0
Twitch data capturing
Created
·
2023-07-31 20:27
Updated
·
2023-07-31 20:28
Flavor
·
ECMAScript (JavaScript)
Matches the data sent by the twitch IRC and captures into various groups
Submitted by
Bucky
0
text has numbers
Created
·
2023-08-01 06:19
Flavor
·
ECMAScript (JavaScript)
text has numbers
Submitted by
vijay
0
email matcher
Created
·
2024-05-28 16:30
Updated
·
2024-05-28 16:31
Flavor
·
PCRE2 (PHP)
match some emails and extract their local part and domain
Submitted by
dang duomg 191
Previous page
1
…
913
914
915
Next page
Community Library Entry
1
Regular Expression
Created
·
2016-01-19 03:00
Flavor
·
Python
r"
(
\S
+
)(
\/
[
\w
-
]
+
\/
[
\w
-
]
+
\/
videos
\/
[
\d
-
]
+
\/
\w
+
\.
ts
)
"
g
Open regex in editor
Description
no description available
Submitted by
anonymous