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
1
cApStAn OmegaT flagged / disallowed text
Created
·
2026-01-11 22:28
Flavor
·
Java
Flagged / disallowed text expression used in cApStAn's build of OmegaT
Submitted by
msoutopico
1
cApStAn OmegaT custom tags
Created
·
2026-01-11 22:26
Flavor
·
Java
Custom tags expression used in cApStAn's build of OmegaT
Submitted by
msoutopico
1
普罗米修斯解析匹配
Created
·
2025-09-27 07:04
Flavor
·
Java
"^([\w_]+)(?:\{(*)\})?\s+([\d\\.e+-]+)(?:\s+(\d+))?$"gm
Submitted by
umanan
1
OpenSearch + ElasticSearch minimum_should_match pattern
Created
·
2025-03-13 10:17
Flavor
·
Java
Validation pattern to validate the minimum_should_mach value in opensearch and elasticsearch queries. For more information on the minimum_should_match field have a look here for opensearch or here for elasticsearch
Submitted by
Hackante
1
vozuskia (cs/sk)
Created
·
2024-09-12 15:35
Flavor
·
Java
Addes a non-breaking space after any of the letters included in the [vozuskia] class.
Submitted by
Manuel Souto Pico
1
YouTube Video ID
Created
·
2024-05-20 13:58
Flavor
·
Java
Gets the ID of a YouTube Video from any link to it.
Submitted by
cheeseburger
1
Parse Address - Prefecture
Created
·
2024-03-20 03:46
Flavor
·
Java
get prefecture from Japanese address
Submitted by
Gary Ascuy
1
AWS EventBridge Scheduling Expressions
Created
·
2024-03-13 19:19
Updated
·
2024-04-25 23:00
Flavor
·
Java
This validates AWS EventBridge scheduling expressions using the rate() and cron() formats. It may not catch all invalid expressions, but it should properly validate all valid expressions, as demonstrated in the unit tests. Please let me know if I missed any valid expressions. Originally attempted this using named capture groups and named back-references to reduce duplication. Unfortunately, named capture support is tricky, so they were all converted to duplicated non-capturing groups instead.
Submitted by
Evan S Kaufman <evan@evanskaufman.com>
1
IANA Media Type
Created
·
2024-02-22 19:45
Flavor
·
Java
Parses an IANA Media Type value. Doesn't seem to capture repeating parameters, which is a bit of an edge case but valid I think - any suggestions on how to fix would be appreciated.
Submitted by
scottbdr
1
文件名称验证
Created
·
2023-12-01 16:03
Flavor
·
Java
操作系统文件名称验证,参考了Windows,Linux,Mac
Submitted by
腾龙问天
1
verifyIPV6
Created
·
2023-11-20 15:18
Flavor
·
Java
verificare indirizzo IPV6 (regole base)
Submitted by
Luigi Piccinni
2
Check Email Validity
Created
·
2023-11-15 10:54
Updated
·
2023-11-15 17:35
Flavor
·
Java
Regular expression to check the email syntax validity. Certainly requires improvement, but it's a good basis to work from. Work with Java and JavaScript.
Submitted by
Alain TOMASIAN <alain.tomasian@kaptus.fr>
1
Gradient for minecraft
Created
·
2023-11-14 09:00
Flavor
·
Java
This is for my plugin project
Submitted by
Trần Thế Anh
1
Youtube Video ID
Created
·
2023-10-18 07:16
Updated
·
2023-10-26 14:06
Flavor
·
Java
Extract youtube video ID
Submitted by
anonymous
1
Extract text strings from repeating text fields followed by a suffix
Created
·
2023-09-22 11:56
Flavor
·
Java
This regex expression is useful for extracting only the text string from a value in a column that may contain values from individual rows with repeat strings tagged with a suffix. For example - Row 1: "Sales (#1)", Row 2: "Sales Match (#2)". From the shared examples, this regex will extract the text "Sales" and "Sales Match."
Submitted by
nilotpalc
2
CSV
Created
·
2023-09-09 10:06
Flavor
·
Java
Crude CSV regex to split only by characters surrounded by non-whitespace characters. Ignore that it dosen't highlight all of the other commas in the editor. If you select the g regex flag it will properly show here, but not work in Java. Credit to @merosity (Merosity#0135) on Discord!
Submitted by
Merosity, regice202
1
Match many cases of 8601
Created
·
2023-08-31 11:08
Updated
·
2023-08-31 14:32
Flavor
·
Java
This is still a working in progress Need to do Unit Tests and search for more use cases Match partial cases of 8601 such as: missing offset missing time only date and offset nano present or not (and being from 1 digit to 9 digits) Also properly captures the data by capturing only: year, month, date, hour, minute, second, nano and offset (be it 'Z' or '+02:00' or' +0200')
Submitted by
jpmand
1
Extract any link or endpoint
Created
·
2023-08-25 22:32
Updated
·
2023-08-27 08:35
Flavor
·
Java
Extract any link or endpoint from 1- HTML page source 2- HTTP responses 3- JS files Feel free to contact me on Telegram https://t.me/c4ir0 if you: are interested in discussing this regex need assistance with any regex-related queries want to challenge me (I'm enthusiastic about this part)
Submitted by
Cairo
1
html <Title>
Created
·
2023-08-09 16:02
Flavor
·
Java
htnle
Submitted by
erichologist
-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
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
-1
Dart relative import
Created
·
2023-07-11 13:37
Flavor
·
Java
find dart relative import path
Submitted by
sagarpanchal
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
1
Riedler's 2nd URL regex
Created
·
2023-05-14 22:10
Flavor
·
Java
why did I make this?
Submitted by
Riedler
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
1
Türkiye Araç Plaka Regexi - Türkiye Car Plate Regex
Created
·
2023-04-24 20:44
Flavor
·
Java
Gist link for Java : https://gist.github.com/Gencturk-m/9962ce1e1dcf4dd9307062e34b023183 Aşağıdaki yapıdaki plakaları kabul eder: "01-81 X 9999", "01-81 X 99999" "01-81 XX 999", "01-81 XX 9999" "01-81 XXX 99" "01-81 XXX 999" **X: Türkçe'nin ÖÇŞİĞÜ hariç büyük harfleri. **Harfler ve sayılar arasında boşluk olmadan kabul eder. Boşluklu versiyonu gist linkinde var. **00, 000, 0000 ve 00000 ile bitenleri kabul etmez. **X: Turkish Capital Letters except ÖÇŞİĞÜ. **There is no white-space between letters and numbers. White-space version is in gist link. **Does not accept plates that ends with 00, 000, 0000 and 00000.
Submitted by
Melih Gençtürk - https://github.com/gencturk-m
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
1
json value extract
Created
·
2023-04-01 02:24
Flavor
·
Java
json value extract
Submitted by
anonymous
1
Email finder
Created
·
2023-03-27 23:58
Flavor
·
Java
Matches with the valid email addresses.
Submitted by
anonymous
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
1
Replace ^ with Math.pow function. Not made to work with braces.
Created
·
2023-03-15 22:00
Updated
·
2023-03-15 22:30
Flavor
·
Java
Replaces ^ with Math.pow function call. This assumes all braces have been combined first. If you need help with the combination, I got you—try this Python algorithm: def evaluate_braces(expr): """Recursively evaluate expressions within braces""" Check if expression contains braces if '(' in expr: Find the innermost set of braces left = expr.rfind('(') right = left + expr[left:].find(')') Evaluate the expression within the braces result = eval(expr[left+1:right]) Replace the expression within the braces with its result expr = expr[:left] + str(result) + expr[right+1:] Recursively evaluate any remaining expressions within braces expr = evaluate_braces(expr) Evaluate the final expression return expr expression = "31+((4+1)+27)2" result = evaluate_braces(expression) print(result) # Output: 2+2+3+4*8/2
Submitted by
Glitchii - https://github.com/Glitchii
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
Load More
Community Library Entry
0
Regular Expression
Created
·
2015-03-19 21:32
Flavor
·
Python
r"
(
.
+?
)
\s
{2,}
(
.
+?
)
\s
{2,}
(
[
A
-
Z
]
{2}
)
\s
{2,}
(
[
A
-
Z
]
{2,}
)
\s
{2,}
(
\d
+
\s
+
[
A
-
Za
-
z
]
+
\s
*
\d
+
)
\s
{2,}
(
\d
+
\s
+
[
A
-
Za
-
z
]
+
\s
*
\d
+
)
\s
{2,}
(
.
+?
)
\s
{2,}
(
.
+?
)
\s
{2,}
(
.
+?
)
\s
{2,}
(
-
?
\d
+
.\d
+
)
\s
{2,}
(
-
?
\d
+
.\d
+
)
"
Open regex in editor
Description
no description available
Submitted by
anonymous