Please enable JavaScript to use this web application.
Regular
Expressions
101
Social
Donate
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 >=7.3)
PCRE (PHP <7.3)
ECMAScript (JavaScript)
Python
Golang
Java 8
.NET 7.0 (C#)
Rust
Sponsors
There are currently no sponsors.
Become a sponsor today!
Community Patterns
Search among 18,000 community submitted regex patterns...
3
Extract URL parts only named capturing groups
Golang
Extract URL parts only named capturing groups
Submitted by
dixanms
-
3 years ago
3
Match any layer bracket pair (.NET)
.NET 7.0 (C#)
Match any layer bracket pair
Submitted by
Yakumo Yukari
-
3 years ago
3
Remove extra/useless python elements for GPT input.
PCRE2 (PHP >=7.3)
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
-
2 years ago
(Last modified 2 years ago)
3
Caltrans EA validation with optional XX-XXXXXX entry and C##-#????#
.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 ...
Submitted by
RDJ@Ct
-
2 years ago
(Last modified 2 years ago)
3
Placeholder resolving
.NET 7.0 (C#)
.Net regular expression for resolving placeholders in the format of ${rewriter(multilevel:key)?fallback} (+ variations)
Submitted by
anonymous
-
a year ago
3
**japanese text** to bold <b>japanese text</b>
PCRE (PHP <7.3)
japanese text to bold japanese text 食べるんだ 食べるんだ
Submitted by
kurokuroshii
-
3 months ago
(Last modified 3 months ago)
4
Phone number
PCRE (PHP <7.3)
no description available
Submitted by
Mark Landry
-
9 years ago
8
Extract Protocol, URL, URL Path, get parameters and hash from URI
Python
This is simplified from my last submission.
Submitted by
Dale O'Brien
-
10 years ago
7
split URL into location-resource-params (JavaScript)
ECMAScript (JavaScript)
Extract resource location, name and query parameters from a URL (JavaScript version)
Submitted by
cebence
-
10 years ago
6
search word with an accent
ECMAScript (JavaScript)
search any word with an accent
Submitted by
Thegner Pierre
-
9 years ago
6
HTML tag stripper
PCRE (PHP <7.3)
This regex will identify all html start and end tags.
Submitted by
anonymous
-
9 years ago
8
Validate Base64 single-line string
PCRE (PHP <7.3)
no description available
Submitted by
ka.
-
11 years ago
9
Youtube ID match
PCRE (PHP <7.3)
This regex will match any Youtube video ID thrown at it and return one capturing group containing the ID.
Submitted by
Jacob Overgaard
-
11 years ago
9
only numbers
PCRE (PHP <7.3)
A string with only numbers in
Submitted by
Gotts
-
9 years ago
5
parsing CSV file
PCRE (PHP <7.3)
It correctly handles simple values, empty values, and quoted values with commas inside.
Submitted by
Viktor Lova aka nsinreal
-
10 years ago
5
Latitude,Longitude fetcher
PCRE (PHP <7.3)
Useful to work with GoogleMap API.
Submitted by
anonymous
-
9 years ago
5
Password strength
ECMAScript (JavaScript)
Regular expression for password validation Rules: 8-120 chars no spaces must contain at least one a-z char must contain at least one A-Z char...
Submitted by
@razvanz
-
9 years ago
5
ipv6
PCRE (PHP <7.3)
Match an ipv6 address
Submitted by
Frusty
-
8 years ago
5
North American Phone Number
ECMAScript (JavaScript)
Validate North American phone numbers with capture groups for the Area Code, Exchange Code, Line Number, and Extension.
Submitted by
AaronBoots
-
8 years ago
6
Password
ECMAScript (JavaScript)
no description available
Submitted by
anonymous
-
11 years ago
(Last modified a year ago)
1
...
890
891
892
893
894
...
900
Community Library Entry
0
Regular Expression
PCRE2 (PHP >=7.3)
/
^
<
(?i)
(?:
input
|
textarea
|
\\
w
{0,}
TextBox
|
\\
w
{0,}
Field
)
.
*
(?:
name
|
id
)
=
(?:
\"
|
\'
)
\w
+
(?:
\"
|
\'
)
.
*
/
gm
Open regex in editor
Description
Rule to identify web form collections
Submitted by
Pandurang Patil
-
a year ago