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
-2
Parsing result of SQL Server version (SELECT @@VERSION)
Created
·
2023-02-15 21:12
Flavor
·
.NET 7.0 (C#)
Parses MS SQL Server version returned from executing SELECT @@version
Submitted by
M Rivas
-1
MMM DDD YYYY
Created
·
2023-02-06 12:42
Flavor
·
.NET 7.0 (C#)
FEB MON 2023
Submitted by
anonymous
0
Camel-Case Splitter (preserves Acronyms)
Created
·
2023-06-26 18:39
Flavor
·
.NET 7.0 (C#)
Splits camel-case string and preserves acronyms
Submitted by
Tyler S.
0
URL Validation
Created
·
2023-06-09 06:36
Flavor
·
.NET 7.0 (C#)
Can be used to validate on URL's.
Submitted by
anonymous
0
Youtube Video Id
Created
·
2023-06-05 02:15
Flavor
·
.NET 7.0 (C#)
Matches the video Id in Youtube URL.
Submitted by
CW
0
for killerswim
Created
·
2023-05-29 23:19
Flavor
·
.NET 7.0 (C#)
a
Submitted by
anonymous
0
Replace namespaces in xpath with local-name
Created
·
2023-05-23 08:29
Flavor
·
.NET 7.0 (C#)
Replace namespaces in xpath with local-name
Submitted by
pvlzh
0
Get ip address (only ipv4) Validator
Created
·
2023-02-21 12:10
Updated
·
2023-02-21 12:15
Flavor
·
.NET 7.0 (C#)
Get ip address (only ipv4) Validator
Submitted by
Mr.Tang
0
Get ip address (only ipv6) Validator
Created
·
2023-02-20 19:35
Updated
·
2023-02-21 12:08
Flavor
·
.NET 7.0 (C#)
Get ip address (only ipv6) Validator
Submitted by
Mr.Tang
0
15.02.2022 15:00:00
Created
·
2023-02-06 12:57
Flavor
·
.NET 7.0 (C#)
15.02.2022 15:00:00
Submitted by
anonymous
0
Minimum 10 herhangi dijit
Created
·
2023-02-06 12:55
Flavor
·
.NET 7.0 (C#)
Minimum 10 herhangi dijit
Submitted by
anonymous
0
USD
Created
·
2023-02-06 12:53
Flavor
·
.NET 7.0 (C#)
USD
Submitted by
anonymous
0
01 Jan 2022 Mon 01:02:03
Created
·
2023-02-06 12:52
Flavor
·
.NET 7.0 (C#)
01 Jan 2022 Mon 01:02:03
Submitted by
anonymous
0
^[A-Z,a-z,\-, ,\&]+$
Created
·
2023-02-06 12:47
Flavor
·
.NET 7.0 (C#)
Koray Bilgi, Text-Regex
Submitted by
anonymous
0
Match IPv4 Valid
Created
·
2023-01-27 19:38
Flavor
·
.NET 7.0 (C#)
expression to capture valid IP
Submitted by
anonymous
0
Get h1-6 tag
Created
·
2023-01-17 14:18
Flavor
·
.NET 7.0 (C#)
(.*?)
Submitted by
OlegBel
0
nick anme
Created
·
2023-01-12 01:31
Updated
·
2023-01-12 01:35
Flavor
·
.NET 7.0 (C#)
mvp
Submitted by
doppler
0
https://rextester.com/JFUKE76014
Created
·
2023-01-09 19:01
Flavor
·
.NET 7.0 (C#)
0x9d9b6f05d7b72588f83cc60fda4286ba45d13924 Nonce 6324 Rash 0xa964e1ee4c92c25f47392f67b735095304631089b5f2173825b7e93f49f08d57 Bloco 3391586 Commit fb5aa46 True Valor $7.000.000.000
Submitted by
0x9d9b6f05d7b72588f83cc60fda4286ba45d13924
0
French Insurance Number
Created
·
2022-12-23 11:22
Flavor
·
.NET 7.0 (C#)
French Insurance Number
Submitted by
Dohts
0
Permiso CRE SAT México
Created
·
2022-12-20 02:32
Flavor
·
.NET 7.0 (C#)
Valida clave o permiso de la CRE
Submitted by
Omar Chávez / Documentación SAT - Comeplemento Nacional CFDIs
0
MoltenObsidian Internal Link
Created
·
2022-12-04 05:37
Updated
·
2023-07-19 10:48
Flavor
·
.NET 7.0 (C#)
Provides parsing w/ named variables for MoltenObsidian-flavoured Markdown wikilinks. (https://github.com/Nodsoft/MoltenObsidian)
Submitted by
Sakura Akeno Isayeki
0
Email address validator - ASCII standard
Created
·
2022-11-30 20:24
Flavor
·
.NET 7.0 (C#)
Checks whether the string is a valid email address per ASCII.
Submitted by
rotors6472
0
BI/CC
Created
·
2022-11-29 22:54
Flavor
·
.NET 7.0 (C#)
Verificação do número de BI/CC
Submitted by
anonymous
0
Semantic Version (semver)
Created
·
2022-11-23 17:48
Flavor
·
.NET 7.0 (C#)
.NET version of the Python regex found on https://semver.org/
Submitted by
semver.org,Jeff Jacobson
0
Sanitize percentage input into bare real number
Created
·
2022-11-23 13:23
Flavor
·
.NET 7.0 (C#)
Turn "123,456 %" into just "123.456"! Mainly for use in C# to parse percentage as string into double. Strip away whitespace Replace comma with decimal point Only allow valid numeric input multiple commas or decimal points won't match therefore does not support thousands-grouping, not even spaces, sorry multiple % symbols won't match any character not 0-9, ,, . or % won't match + or - will match, but +- or ± will not, nor will any other operators Using $1$2.$3$4 for substitution spits out a sanitized number with a forced decimal point. Note: The decimal point is present even when the number input doesn't include any decimals, e.g. for 12% the result will be 12.. You may wish to append a 0 in your code to make it 12.0 - in .NET 4.5 C# the double.Parse and double.TryParse handle the result just fine even without that, but your mileage may vary. See example on repl.it
Submitted by
Moravuscz
0
myRegEx
Created
·
2022-11-19 04:21
Flavor
·
.NET 7.0 (C#)
myRegEx
Submitted by
Avinash
0
Enum map to test cases
Created
·
2022-11-16 15:23
Flavor
·
.NET 7.0 (C#)
.
Submitted by
DenKu1
0
TAP Result Log issue
Created
·
2022-11-15 03:28
Updated
·
2022-11-15 08:43
Flavor
·
.NET 7.0 (C#)
This might help you to not miss some because the (.....), is dependent on the length.
Submitted by
Darwin Subramaniam
0
Remplazar contenido
Created
·
2022-11-10 11:39
Flavor
·
.NET 7.0 (C#)
Remplazar contenido
Submitted by
anonymous
0
Task6.2
Created
·
2022-11-04 17:35
Flavor
·
.NET 7.0 (C#)
Telephone number regex
Submitted by
anonymous
0
Task6.1
Created
·
2022-11-04 16:43
Flavor
·
.NET 7.0 (C#)
simple mail regex
Submitted by
anonymous
0
Names from Wikipedia List
Created
·
2022-11-03 18:13
Flavor
·
.NET 7.0 (C#)
Matches all names in a Wikipedia List, excluding names with suffixes (eg. Jr., III, PhD, etc.) or multiple middle names.
Submitted by
Brian Kozub
0
CAN regex
Created
·
2022-11-02 15:00
Flavor
·
.NET 7.0 (C#)
n
Submitted by
anonymous
0
P4 file info
Created
·
2022-11-01 06:37
Flavor
·
.NET 7.0 (C#)
just p4 file command output match
Submitted by
anonymous
0
SSID Pattern
Created
·
2022-10-23 21:18
Updated
·
2022-10-23 23:40
Flavor
·
.NET 7.0 (C#)
Length must be 7 digits Every character must be an integer
Submitted by
Abhi Reddy
0
Initials
Created
·
2022-10-17 02:13
Flavor
·
.NET 7.0 (C#)
get the initial of a strings
Submitted by
Eddie Choong
0
URL
Created
·
2022-10-03 23:45
Flavor
·
.NET 7.0 (C#)
(@url)([\s]=[\s])(?:')(.)(?:')(?:;)
Submitted by
anonymous
0
IP Table Parse IPID
Created
·
2022-09-19 02:53
Flavor
·
.NET 7.0 (C#)
Match 1 is the IPID
Submitted by
Tres Little
0
Match token and optional convert to type in string
Created
·
2022-09-16 11:13
Flavor
·
.NET 7.0 (C#)
I use this in a JSON template together with JObject data to create a JSON string
Submitted by
rkleinkromhof
0
title and page
Created
·
2022-09-07 03:55
Updated
·
2022-09-07 11:23
Flavor
·
.NET 7.0 (C#)
find title and page in text
Submitted by
anonymous
0
7zip file type regex
Created
·
2022-09-06 14:59
Flavor
·
.NET 7.0 (C#)
header of output from > 7z i
Submitted by
ninmonkey
0
custom email
Created
·
2022-08-30 13:31
Flavor
·
.NET 7.0 (C#)
custom email
Submitted by
anonymous
0
Any WhiteSpace Character
Created
·
2022-08-21 12:36
Flavor
·
.NET 7.0 (C#)
Any WhiteSpace Character
Submitted by
anonymous
0
sdfsfd
Created
·
2022-08-18 16:47
Flavor
·
.NET 7.0 (C#)
sdfdsf
Submitted by
anonymous
0
Sanitize CSV Export Expression for regex.replace (this regex) with empty string
Created
·
2022-08-18 16:41
Flavor
·
.NET 7.0 (C#)
see owasp recommendation for things to remove from a csv export. this expression matches on following characters [. , ; + = - @ ' "] also carriage return make sure to clear strings for whitespace and choose your preferred methods for additional security from the examples in the owasp documentation https://owasp.org/www-community/attacks/CSV_Injection
Submitted by
anonymous
0
Username regex
Created
·
2022-08-16 16:34
Flavor
·
.NET 7.0 (C#)
Matches alphanumeric, @, . , -
Submitted by
Ethan Pedersen
0
Negative lookbehind
Created
·
2022-08-15 20:46
Flavor
·
.NET 7.0 (C#)
There is not word boundary between the >< and as there seem to be at least 1 or more uppercase characters, then quantifier can be + to match 1 or more times. If you don't want to split at the start of the string, creating an empty entry in the result list, you can assert using a negative lookbehind (?<!^\s*) that there are not optional whitespace chars to the left after the start of the string. https://stackoverflow.com/a/73366124/3080770
Submitted by
anonymous
0
Camel Case - digits allowed - Upto 3 upper case letters
Created
·
2022-08-12 21:23
Flavor
·
.NET 7.0 (C#)
Camel Case - digits allowed - Upto 3 upper case letters To be proper camel case a word with digits allowed and upto 3 upper case letters, a word: MUST start with a lower case alphabet (a through z) MUST have no spaces, punctuation or special characters CAN have at most 3 uppercase alphabets in a row CAN end in an uppercase alphabet Notable examples camel01CC01 is valid lower camel case, with digits allowed , with upto 3 upper case letters
Submitted by
anonymous
0
Camel Case - no digits allowed - Upto 3 upper case letters
Created
·
2022-08-12 21:13
Updated
·
2022-08-12 21:16
Flavor
·
.NET 7.0 (C#)
To be proper camel case a word with no digits allowed and upto 3 upper case letters, a word: Must start with a lower case alphabet (a through z) Must have no digits (0 - 9) MUST have no spaces, punctuation or special characters Can have at most 3 uppercase alphabets in a row Can end in an uppercase alphabet Notable examples deviceIDserialNoawsVPC` is valid lower camel case with no digits allowed - Upto 3 upper case letters
Submitted by
anonymous
0
URLs and Emails RegEx
Created
·
2022-08-08 16:36
Flavor
·
.NET 7.0 (C#)
A neat regular expression to extract web urls and emails from a paragraph or a text stream.
Submitted by
kosalanuwan
Load More
Community Library Entry
0
Regular Expression
Created
·
2023-02-06 02:30
Updated
·
2023-02-06 03:11
Flavor
·
ECMAScript (JavaScript)
/
^
rgba
?
\(
(?:
(?:
(?:
[
0
-
9
]
{1,3}
){2}
[
0
-
9
]
{1,3}
|
(?:
[
0
-
9
]
{1,3}
%
){2}
[
0
-
9
]
{1,3}
%
)(?:
\/
(?:
[
0
-
9
]
{1,3}
%
|
1
|
0
|
0
?
\.
[
0
-
9
]
+
)
)?
|
(?:
(?:
[
0
-
9
]
{1,3}
,
){2}
[
0
-
9
]
{1,3}
|
(?:
[
0
-
9
]
{1,3}
%,
){2}
[
0
-
9
]
{1,3}
%
)(?:
,
(?:
[
0
-
9
]
{1,3}
%
|
1
|
0
|
0
?
\.
[
0
-
9
]
+
)
)?
)
\)
$
/
gm
Open regex in editor
Description
It validates the RGB expression doesn't break the CSS parser.
Submitted by
Martin