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
Ascending and Descending order
Created
·
2023-07-17 15:51
Flavor
·
Java
This regex is to match Ascending or descending order of 8 digit number
Submitted by
anonymous
-1
Dart relative import
Created
·
2023-07-11 13:37
Flavor
·
Java
find dart relative import path
Submitted by
sagarpanchal
-1
IPv4 Matcher
Created
·
2021-03-24 16:23
Flavor
·
Java
This RE is divided into four parts. The first three parts are acceptable numbers from 0 to 255 followed by "." The last part is an acceptable number but not followed by "."
Submitted by
EMAM1999
0
Capturing groups with suffix
Created
·
2023-07-17 08:05
Flavor
·
Java
Capturing the content of column names which are duplicate in nature to extract the actual name and suffix ("right" / "left")
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
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
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
Martch Letras y Parentesis
Created
·
2023-05-26 00:15
Flavor
·
Java
Martch Letras y Parentesis
Submitted by
Daniel Gonzalez
0
SUPPL REGEX
Created
·
2023-05-02 16:38
Updated
·
2023-05-12 16:02
Flavor
·
Java
Regex to get only information in the SUPPL subdirectory
Submitted by
O'Connor
0
test everything
Created
·
2023-04-23 00:40
Flavor
·
Java
hello
Submitted by
anonymous
0
Pick uuidValue from jSON payload
Created
·
2023-04-18 14:56
Flavor
·
Java
.
Submitted by
jeevan
0
Split up text to 40 signs
Created
·
2023-04-13 13:21
Flavor
·
Java
This splits a text into sequences of max. 40 chars, concatting with a pipe
Submitted by
anonymous
0
section headers
Created
·
2023-04-05 23:05
Flavor
·
Java
ff
Submitted by
ff
0
awdwa
Created
·
2023-04-05 06:29
Flavor
·
Java
dwa
Submitted by
dwa
0
Other segment
Created
·
2023-03-24 13:07
Flavor
·
Java
Other segments
Submitted by
Lufram
0
Take segments to string
Created
·
2023-03-24 13:05
Flavor
·
Java
Take segments to string
Submitted by
Lufram
0
Kyivstar phone number
Created
·
2023-03-19 17:11
Flavor
·
Java
Kyivstar phone number
Submitted by
milka_vlad
0
tas-branch-validation
Created
·
2023-03-16 10:07
Flavor
·
Java
tas-branch-validation
Submitted by
doron-hafner
0
ip address
Created
·
2023-03-13 14:07
Flavor
·
Java
ip address regex
Submitted by
shyam
0
Titulo da expressao
Created
·
2023-03-08 03:15
Flavor
·
Java
\w
Submitted by
anonymous
0
Database datatype check
Created
·
2023-03-06 08:15
Flavor
·
Java
Database data type determination and extraction. Example: varchar(20) varchar2(20) number(20,3) timestamp Varchar(20)
Submitted by
anonymous
0
test
Created
·
2023-03-02 05:36
Flavor
·
Java
test
Submitted by
anonymous
0
Valid date (DD-MM-YYYY) from 1900 to 2099
Created
·
2023-02-24 19:28
Flavor
·
Java
Valid date (DD-MM-YYYY) from 1900 to 2099
Submitted by
Nevix-Sama
0
简单日志匹配
Created
·
2023-02-24 07:06
Flavor
·
Java
普通日志匹配, 匹配出字段: [time, level, logClass, content]
Submitted by
qinxike
0
match name and surname in a name.surname@domain.com email.
Created
·
2023-02-22 14:20
Flavor
·
Java
This will match any words that show up before the @ sign in an email. Digits, dots, commasz and other special characters are ignored.
Submitted by
WojciechW
0
CPF Number Repetition
Created
·
2023-02-18 17:28
Updated
·
2023-02-18 17:40
Flavor
·
Java
It matches CPF (Cadastro de Pessoa Física) with all digits as the same number. Since CPF consists in a pattern ###.###.###-##, or ###########, and # being a single digit, this document cannot have all the 11 (eleven) digits as the same number. Therefore 000.000.000.000-00 would not be an example of a CPF, since all 11 digits are the same number, in this case 0 (zero). This regular expression matches this case, where the cpf have all digit as the same number.
Submitted by
TheRockSaysOP
0
elasticsearch exception explain regex
Created
·
2023-02-15 07:29
Flavor
·
Java
throw elasticsearch exception logger info, find exception type and reason field
Submitted by
jason
0
Password
Created
·
2023-02-13 13:54
Flavor
·
Java
Password
Submitted by
Mohammed Elshaboury
0
OmegaT
Created
·
2023-02-10 08:09
Flavor
·
Java
regular expressions used in OmegaT
Submitted by
anonymous
0
HTML Image Regex
Created
·
2023-02-03 11:29
Flavor
·
Java
This code will find image files with .gif and .jpg extensions which are present in a HTML or CSS code. Here I am using the prefix '/asmproxy/' to identify the resource and then checking if extension ends with a .gif or .jpg. This Regex has its limitations as we are using prefix.
Submitted by
Suman Mummaneni
0
Business Address | WI | Trademark | USA
Created
·
2023-01-30 17:47
Flavor
·
Java
s
Submitted by
anonymous
0
carbon
Created
·
2023-01-30 16:18
Flavor
·
Java
test1
Submitted by
anonymous
0
Valid Scientific Notation Number
Created
·
2023-01-25 19:02
Flavor
·
Java
A valid number can be split up into these components (in order): A decimal number or an integer. (Optional) An 'e' or 'E', followed by an integer. A decimal number can be split up into these components (in order): (Optional) A sign character (either '+' or '-'). One of the following formats: One or more digits, followed by a dot '.'. One or more digits, followed by a dot '.', followed by one or more digits. A dot '.', followed by one or more digits. An integer can be split up into these components (in order): (Optional) A sign character (either '+' or '-'). One or more digits.
Submitted by
cliserkad
0
Match gradle dependencies
Created
·
2023-01-12 02:11
Flavor
·
Java
.
Submitted by
anonymous
0
DSA
Created
·
2023-01-10 16:21
Flavor
·
Java
dsa
Submitted by
DSA
0
Link Matcher v1
Created
·
2023-01-03 09:14
Updated
·
2023-01-03 09:14
Flavor
·
Java
The link matcher regex currently matches the most common types of links. *Removed other links
Submitted by
IkeVoodoo
0
Decision Table
Created
·
2022-12-21 11:08
Updated
·
2023-01-09 10:15
Flavor
·
Java
Rules engine CSV Decision Table expression
Submitted by
Vincent Wautelet
0
TatraBanka AMOUNT_VALUE
Created
·
2022-12-16 16:24
Updated
·
2023-06-14 09:56
Flavor
·
Java
some descriptoin
Submitted by
Inez van Acker, Robert Schulz
0
email valid
Created
·
2022-12-12 02:29
Flavor
·
Java
email validation
Submitted by
Hoot
0
date dd.mm.yyyy
Created
·
2022-12-05 13:54
Flavor
·
Java
Date format dd.mm.yyyy
Submitted by
anonymous
0
partnkey value
Created
·
2022-11-28 21:02
Flavor
·
Java
Extract value partn_key
Submitted by
anonymous
0
Extract a string key's values from a json
Created
·
2022-11-26 18:23
Updated
·
2022-11-26 21:13
Flavor
·
Java
Sample: Finds errorType key values from a json. Values are returned in capturing group 1 of each match. Both UNKNOWN and UNAUTHENTICATED will be captured. { "data": null, "errors": [ { "message": "Message", "extensions": { "errorType": "UNKNOWN", "error_code": "AUTHENTICATE_USER_FALSE" } }, { "message": "Message", "extensions": { "errorType": "UNAUTHENTICATED", "error_code": "AUTHENTICATE_USER_FALSE" } } ] }
Submitted by
amansaryal
0
Identifier Regex
Created
·
2022-11-24 19:05
Flavor
·
Java
Regex for identifiers
Submitted by
anonymous
0
Variable address condition
Created
·
2022-11-24 15:14
Flavor
·
Java
This regex matches the variable address condition like: [1,100] >= 1 && [1,111] <= 2
Submitted by
Texx
0
test
Created
·
2022-10-31 10:58
Flavor
·
Java
test
Submitted by
anonymous
0
Regular expression for positive number with 2 decimals used for displaying money
Created
·
2022-10-27 17:25
Updated
·
2023-07-20 05:54
Flavor
·
Java
I think from time to time we all need a regular expression for displaying numbers with 2 decimals for displaying money of various currencies in the world. This regex should only allow 1 dot or comma as a decimal separator. And only allow positive numbers and the numbers can't begin with a 0. Goals: Both dot and comma can be used as a decimal separator The decimal separator can only be once in a number Numbers can't begin with a zero Only positive numbers allowed
Submitted by
Remzi Cavdar
Load More
Community Library Entry
0
Regular Expression
Created
·
2022-11-23 18:30
Flavor
·
PCRE2 (PHP)
/
(
\(
\d
{1,3}
[
0
-
9,a
-
z,A
-
Z
]
{1}?
\)
(?<upc>
[
\d
,a
-
z,A
-
Z
]
{1,70}
)
)(
\(
\d
{1,3}
[
0
-
9,a
-
z,A
-
Z
]
{1}?
\)
(?<date>
[
\d
,a
-
z,A
-
Z
]
{1,70}
)
)(
\(
\d
{1,3}
[
0
-
9,a
-
z,A
-
Z
]
{1}?
\)
(?<batch>
[
\d
,a
-
z,A
-
Z
]
{1,70}
)
)
/
gm
Open regex in editor
Description
Parse the 3 groups of a GS1-128 Barcode
Submitted by
Mike D