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...
3
Email
Created
·
2021-03-20 22:30
Flavor
·
ECMAScript (JavaScript)
This is a bit simpler version that is still quite robust. It was taken from a Formik example.
Submitted by
codefinity
3
Link markdown with title text
Created
·
2021-03-21 15:20
Flavor
·
ECMAScript (JavaScript)
Simple link mardown detection with a title text
Submitted by
Olpouin
3
Livestock - Visual tag and Back tag
Created
·
2021-03-26 17:11
Flavor
·
PCRE2 (PHP)
Visual tag and Back tag cannot more than 15 characters or only can contain uppercase, lowercase, space and dash.
Submitted by
Adrian Yim
3
discord invite link
Created
·
2021-05-15 01:47
Flavor
·
ECMAScript (JavaScript)
detect discord invite links such as: discord.gg/link discord.com/invite/link .gg/link .com/invite/link it also puts the link into a separate name group, so you can do http requests and stuff edited cuz whitespacing
Submitted by
padero
3
camelCase2snake_case
Created
·
2023-03-23 19:10
Flavor
·
PCRE2 (PHP)
Convert camelCase to snake_case def camelCase2snake_case(txt): """ Convert camelCase to snake_case https://regex101.com/library/wUcSv4 """ txt = re.sub(r'(A-Z]+)', '_\\1', txt.strip()) txt = txt.lower() return txt In Python 🐍 the \L case modifier in the substitution pattern to lower case is not supported. By [JV-conseil
Submitted by
JV-conseil
3
Discord ID:NAME#DISCRIM match
Created
·
2021-07-06 00:24
Flavor
·
PCRE2 (PHP)
For example, using `Carl-bot to dump members of the @everyone role ordering highest of id`: `!dump @everyone %i:%u -o id` Example of return: 498984530968051713:lanjt#2129 ... Matches with group ID, group NAME and group DISCRIMINATOR.
Submitted by
lanjt
3
mega.nz files and folders
Created
·
2021-07-06 17:55
Flavor
·
PCRE2 (PHP)
Regex for matching https://mega.nz file and folder URLs. https://github.com/tonikelope/megabasterd/issues/215
Submitted by
anonymous
3
example
Created
·
2021-07-13 06:44
Flavor
·
PCRE2 (PHP)
example
Submitted by
anonymous
3
Viet Nam Phone Number
Created
·
2021-09-22 16:50
Flavor
·
ECMAScript (JavaScript)
Viet Nam Phone Number Regex. This regex include: Cellphone number: Viettel, Vinaphone, Mobiphone, Vietnamobile, Iteltelecom, Reddi (055) Telephone number (such as: 024, 028,...) Start with 0 or 84 Exactly 10 or 11 numbers
Submitted by
tuangt12
3
GitHub bare url to org/repo Markdown
Created
·
2021-12-13 21:36
Flavor
·
PCRE2 (PHP)
Convert a bare url into organization/repo format in a Markdown link.
Submitted by
anonymous
3
Markdown Heading
Created
·
2021-12-14 21:41
Flavor
·
Java
Parses the text following a '#' and a space all the way up to the next return character. Additional #'s can be added for parsing of other type of headings!
Submitted by
Hansen
3
Extract URL parts only named capturing groups
Created
·
2022-02-03 00:00
Flavor
·
Golang
Extract URL parts only named capturing groups
Submitted by
dixanms
3
Match any layer bracket pair (.NET)
Created
·
2022-03-10 03:13
Flavor
·
.NET 7.0 (C#)
Match any layer bracket pair
Submitted by
Yakumo Yukari
3
Ultimate markdown parser
Created
·
2023-01-02 01:50
Flavor
·
ECMAScript (JavaScript)
In order to neasting parsing work you need to run this regex multiple times on same target.
Submitted by
Mateusz Budzisz
3
Remove extra/useless python elements for GPT input.
Created
·
2023-02-01 19:16
Updated
·
2023-02-02 00:41
Flavor
·
PCRE2 (PHP)
This RegEx removes unused elements such as inline comments and blank lines in python code. This will save you tokens and time when using GPT-3+ or ChatGPT to help code and debug.
Submitted by
LukeL
3
Caltrans EA validation with optional XX-XXXXXX entry and C##-#????#
Created
·
2023-04-07 19:11
Updated
·
2023-04-07 19:51
Flavor
·
.NET 7.0 (C#)
Checks validity of an EA number first two digits 01-12 followed by hyphen then a number from 0-4 and then 4 numbers or uppercase letters and ending in a 1 or 4 for example "05-1J7601". Adding a capital C to the beginning is also accepted "C05-1J7601", along with the entry of 2 X's hyphen and 6 X's "XX-XXXXXX"
Submitted by
RDJ@Ct
3
regex101: RFC1918 Private IPv4 Addresses, but limited to matching /24 subnet host IDs
Created
·
2023-08-23 07:20
Flavor
·
PCRE2 (PHP)
POSIX ERE compatible, suitable for usage in Bash [ testing Attributions Derived from [regex101: RFC1918 - Private IPv4 addresses by 0100101101001.
Submitted by
anonymous
3
Placeholder resolving
Created
·
2023-10-07 19:39
Flavor
·
.NET 7.0 (C#)
.Net regular expression for resolving placeholders in the format of ${rewriter(multilevel:key)?fallback} (+ variations)
Submitted by
anonymous
3
**japanese text** to bold <b>japanese text</b>
Created
·
2024-08-18 18:02
Updated
·
2024-08-18 18:03
Flavor
·
PCRE (Legacy)
japanese text to bold japanese text 食べるんだ 食べるんだ
Submitted by
kurokuroshii
3
Quiz_8_HTML_Tags
Created
·
2024-10-08 14:04
Flavor
·
PCRE2 (PHP)
Strip all HTML tags from a string. HTML tags are enclosed in . The regex will be applied on a line-by-line basis, meaning partial tags will need to be handled by the regex. Don't worry about opening or closing tags; we just want to get rid of them all. Note: This task is meant to be a learning exercise, and not necessarily the best way to parse HTML
Submitted by
anonymous
Previous page
1
…
11
12
13
14
15
…
915
Next page