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 community submitted regex patterns...
0/512
0
text has numbers
Created
·
2023-08-01 06:19
Flavor
·
ECMAScript (JavaScript)
text has numbers
Submitted by
vijay
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
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
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
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
Tracking Number Recognition and Parsing
Created
·
2023-07-12 16:54
Flavor
·
PCRE (Legacy)
T
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
Html tag match
Created
·
2023-07-10 06:59
Flavor
·
ECMAScript (JavaScript)
Html tag match
Submitted by
anonymous
0
legal edition of DCA
Created
·
2023-07-08 09:46
Flavor
·
ECMAScript (JavaScript)
Extraigo la fecha del PDF de la edición legal del diario de Centroamérica
Submitted by
anonymous
0
New Discord Username
Created
·
2023-07-07 02:09
Flavor
·
ECMAScript (JavaScript)
Validates if a username is valid or not on the new discord username system
Submitted by
anonymous
0
Old Discord Username Match
Created
·
2023-07-07 02:08
Flavor
·
ECMAScript (JavaScript)
Detect and capture every part of the old discord username system
Submitted by
N0de
0
whois
Created
·
2023-07-06 15:38
Flavor
·
PCRE (Legacy)
whois find param
Submitted by
anonymous
0
Add quotes to a malformed JSON string
Created
·
2023-07-06 11:47
Flavor
·
ECMAScript (JavaScript)
This Regex allows to add double-quotes to a JSON string that is missing them. It assumes we have a space after the ":" and also after the ",".
Submitted by
anonymous
0
Bangladeshi phone numbers
Created
·
2023-07-05 18:44
Updated
·
2023-07-05 18:56
Flavor
·
ECMAScript (JavaScript)
Matches all Bangladeshi SIM numbers
Submitted by
Mushfiq Talha
0
Валидность телефона Российской Федерации форматов "+7", "7", "8"
Created
·
2023-06-28 18:54
Flavor
·
ECMAScript (JavaScript)
Работает с форматами +7, 7, 8 Варианты валидации любые.
Submitted by
anonymous
0
Catch packages from 'tdnf list' output
Created
·
2023-06-26 18:42
Flavor
·
Golang
Every valid line will be of the form: . . . NOTE: the distribution tag is expected to start with at least one letter and be followed by at least one digit.
Submitted by
anonymous
0
Find last word and space of string
Created
·
2023-06-26 03:43
Updated
·
2023-06-26 03:45
Flavor
·
ECMAScript (JavaScript)
Foo Bar
Submitted by
anonymous
0
Latin Character ranges
Created
·
2023-06-23 09:11
Flavor
·
ECMAScript (JavaScript)
Latin Character ranges
Submitted by
anonymous
0
JavaScript kebab-case
Created
·
2023-06-21 03:34
Flavor
·
ECMAScript (JavaScript)
including digits and double dashes
Submitted by
anonymous
0
JavaScript camelCase
Created
·
2023-06-21 03:29
Flavor
·
ECMAScript (JavaScript)
including digits and sequential uppercase letters
Submitted by
anonymous
0
Cover dates from 2009 and older in French format and English
Created
·
2023-06-19 17:38
Flavor
·
Java
Covering Dates starting from year 2009 and older in French and English Some of the valid Dates format April 2nd 2008 April 2 2008 April 02 2008 2009-01-01 31-03-2009 03-31-2009 31 March 2009 March 31 2009 31 mars 2009 May 10th 1989 April 2nd 2008 2009.01.01 2009 1 31 31st december 2009 31 décembre 2009 31 Decembre 2009 2009/02/01 2009.01.01 2009 01 01 31 03 2009 12 31 2009
Submitted by
Francois-Alexandre Valade-Casaubon
0
Matches words and groups words in quotes
Created
·
2023-06-16 18:50
Flavor
·
ECMAScript (JavaScript)
Spilt a string grouping words in quotes. String: First Last "Full Name" Matches: First|Last|"Full Name"
Submitted by
Frosty
0
parse data URL
Created
·
2023-06-16 16:09
Flavor
·
ECMAScript (JavaScript)
Parse Data URL like: data:image/png;base64,__iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAHElEQVQI12P4//8/w38GIAXDIBKE0DHxgljNBAAO9TXL0Y4OHwAAAABJRU5ErkJggg==__
Submitted by
Alan S. Ferreira
0
Remove JSON value quotes
Created
·
2023-06-16 11:28
Flavor
·
ECMAScript (JavaScript)
Removes quotes from value of JSON string
Submitted by
anonymous
0
Options symbol parse
Created
·
2023-06-13 18:29
Flavor
·
ECMAScript (JavaScript)
parse option symbol
Submitted by
anonymous
0
Markdown JSON codeblock match
Created
·
2023-06-13 13:34
Updated
·
2023-06-13 15:17
Flavor
·
ECMAScript (JavaScript)
Useful to extract JSON from LLM markdown responses
Submitted by
Lamer217
0
匹配任何小数,小数点后不保留0
Created
·
2023-06-11 11:42
Flavor
·
ECMAScript (JavaScript)
匹配任何小数,小数点后不保留0
Submitted by
anonymous
0
Java RegExMatch Example
Created
·
2023-06-08 12:20
Flavor
·
Java
This is an example for stackoverflow
Submitted by
anonymous
0
Java RegEx Group Test
Created
·
2023-06-08 12:04
Flavor
·
Java
Test
Submitted by
anonymous
0
APA Citation v1
Created
·
2023-06-08 11:39
Flavor
·
Java
Parse APA v7 citations
Submitted by
mathias v
0
detect inner function with recursiion
Created
·
2023-06-07 14:45
Flavor
·
Java
working for all not for java
Submitted by
anonymous
0
catch inner element
Created
·
2023-06-07 14:44
Flavor
·
Java
working regex for any
Submitted by
anonymous
0
CSS @import statement
Created
·
2023-06-07 10:58
Flavor
·
ECMAScript (JavaScript)
Matches CSS @import statements with media and layer support
Submitted by
anonymous
0
jiggl
Created
·
2023-06-07 10:53
Flavor
·
PCRE (Legacy)
toggl track to jira
Submitted by
anonymous
0
JabRef biblatex alphabetic adaption
Created
·
2023-06-06 15:00
Updated
·
2023-06-06 16:27
Flavor
·
Java
A regex used to emulate the biblatex alphabetic citation key style in JabRef: https://discourse.jabref.org/t/use-field-markers-in-regex-for-citation-key-generator/3842
Submitted by
anonymous
0
Redis command parser
Created
·
2023-06-05 15:32
Flavor
·
ECMAScript (JavaScript)
Modified source from https://stackoverflow.com/a/64833638/1454045
Submitted by
Nathaniel Schweinberg
0
IPv4-CIDR
Created
·
2023-06-05 12:57
Flavor
·
ECMAScript (JavaScript)
Match IPv4-CIDR (JavaScript)
Submitted by
fwqaaq
0
fcc-title-case-a-sentence
Created
·
2023-06-05 03:24
Flavor
·
ECMAScript (JavaScript)
a regex to find first letter of each word
Submitted by
anonymous
0
Official Emeil validation Regex
Created
·
2023-06-01 13:35
Flavor
·
ECMAScript (JavaScript)
Regex from the Mail::RFC822::Address: regexp-based address validation Access here
Submitted by
Igor Julliano Aguiar Sotero
0
Laughter
Created
·
2023-05-28 08:48
Flavor
·
ECMAScript (JavaScript)
Matches all laughter like: hahahahhhahahahha hahha ahah lol lolollolll hehehhe hihiihih
Submitted by
Prozilla
0
Egyptian Phone Numbers
Created
·
2023-05-28 06:37
Updated
·
2023-05-28 07:27
Flavor
·
ECMAScript (JavaScript)
Validate Egyptian phone numbers ... Read More (Arabic)
Submitted by
Mahmoud Mostafa
0
Egyptian National ID
Created
·
2023-05-28 06:02
Flavor
·
ECMAScript (JavaScript)
This validates the components of the Egyptian national ID ... See details (Arabic)
Submitted by
Mahmoud Mostafa
0
strip host port
Created
·
2023-05-26 15:55
Flavor
·
PCRE (Legacy)
removes port number from URL
Submitted by
pc
0
Martch Letras y Parentesis
Created
·
2023-05-26 00:15
Flavor
·
Java
Martch Letras y Parentesis
Submitted by
Daniel Gonzalez
0
vscode-f5 xc reserved ports issue #209
Created
·
2023-05-24 12:57
Updated
·
2023-05-24 14:16
Flavor
·
ECMAScript (JavaScript)
https://github.com/f5devcentral/vscode-f5/issues/209
Submitted by
anonymous
0
Proxy Matcher
Created
·
2023-05-23 13:54
Flavor
·
PCRE (Legacy)
Validate 1-223.0-255.0-255.0-255:1-65535
Submitted by
dev.tntd2k2
0
latlonlatlon
Created
·
2023-05-22 19:12
Flavor
·
PCRE (Legacy)
gg
Submitted by
anonymous
0
capture strings between starts and ends line
Created
·
2023-05-22 17:36
Updated
·
2023-09-26 04:05
Flavor
·
ECMAScript (JavaScript)
capture any strings between starts and ends line
Submitted by
anonymous
0
test
Created
·
2023-05-22 15:56
Flavor
·
ECMAScript (JavaScript)
test
Submitted by
anonymous
0
0及最多6位正负整数
Created
·
2023-05-18 03:35
Flavor
·
ECMAScript (JavaScript)
1、匹配6位以内正负整数 2、可以匹配0 有效例子 0 21 -131452 无效例子 -01 01 1314520
Submitted by
anonymous
Load More
Community Library Entry
0
Regular Expression
Created
·
2023-06-09 06:36
Flavor
·
.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