Please enable JavaScript to use this web application.
Regular
Expressions
101
Social
Social
Join the Discord community!
Follow me on twitter!
Send me an email
Donate
Donate
Donate through Paypal
Become a Github Sponsor
Info
Info
Find out what's new!
RegEx101 Wiki
Report bugs or make suggestions
What's new?
Loading content...
Close
Regex Editor
Regex Editor
Community Patterns
Community Patterns
Account
Account
Regex Quiz
Regex Quiz
Settings
Settings
Live Help
Live Help
Get help on Discord
Get help on IRC
Order By
Most Recent
Highest Score
Lowest Score
Most upvotes
Most downvotes
Filter by Flavor
PCRE2 (PHP >=7.3)
PCRE (PHP <7.3)
ECMAScript (JavaScript)
Python
Golang
Java 8
.NET (C#)
Rust
Sponsors
Community Patterns
Search among 13,060 community submitted regex patterns...
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
Alpha Numeric With Spaces & Limited Punctuation
ECMAScript (JavaScript)
This allows multiple continuous strings of only alpha numeric characters & limiting punctuation to: ?().,'+ /:@-
Submitted by
anonymous
-
5 days ago
2023-09-27 22:04
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
Street House Number Split & Validation (Street First)
ECMAScript (JavaScript)
Validate & split street address lines for countries where the street name is typically written first (e.g. Germany)
Submitted by
anonymous
-
6 days ago
2023-09-26 17:31
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
Street House Number Split & Validation (House Number First)
ECMAScript (JavaScript)
Validate & split street address lines for countries where the house number is typically written first (e.g. US or France)
Submitted by
anonymous
-
6 days ago
2023-09-26 17:31
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
Match each Unicode Characters, Symbols, and Emojis consecutively
ECMAScript (JavaScript)
RegExp matches each (combined) Unicode symbol, character, or emoji consecutively. Note: there are some edge cases where it does not combine some symbols that should be seen as one symbol (after Default Grapheme Cluster Boundary of UAX #29). For Unicode code point info see codepoints.net Also, see ...
Submitted by
MAZ01001
-
7 days ago
2023-09-26 02:02
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
Extract text strings from repeating text fields followed by a suffix
Java 8
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...
Submitted by
nilotpalc
-
10 days ago
2023-09-22 11:56
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
groupping math every 2 comma separator
PCRE (PHP <7.3)
i have paste \n after every 2-th comma using sed sed 's/\(\(*,\)\{2\}\)/\1\n/g'
Submitted by
sanekmihailow
-
13 days ago
2023-09-19 18:20
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
Regex URL validation pattern
ECMAScript (JavaScript)
Regex URL validation pattern
Submitted by
Septian Maulana
-
13 days ago
2023-09-19 06:39
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
Regex to find URLs in text
ECMAScript (JavaScript)
Regex to find URLs in text
Submitted by
Saheed Odulaja
-
14 days ago
2023-09-18 10:01
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
Cron Job Regular Expression for JavaScript / ECMAScript
ECMAScript (JavaScript)
Simple pattern for validating Cron Job descriptors in your JavaScript / TypeScript / ECMAScript projects. Includes support for date ranges, day ranges, digit ranges, divisors... all of the things you'd expect to encounter in possible Cron values.
Submitted by
Nicholas Berlette (https://github.com/nberlette)
-
18 days ago
2023-09-14 23:31
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
Non-Empty String
ECMAScript (JavaScript)
This simply checks if the string is not empty spaces.
Submitted by
anonymous
-
18 days ago
2023-09-14 21:39
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
Javascript Email Verification RFC5322
ECMAScript (JavaScript)
Original credit for this expression goes to: https://emailregex.com/
Submitted by
anonymous
-
18 days ago
2023-09-14 21:34
(Last modified 18 days ago)
2023-09-14 22:03
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
find the function definition based on indentation
ECMAScript (JavaScript)
check the code
Submitted by
anonymous
-
18 days ago
2023-09-14 08:07
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
Remove specific parameter from URL
PCRE (PHP <7.3)
This pattern finds a parameter (sst) key + value in a GET request URL. When replaced with an empty string, effectively removes the parameter. Works with both full URLs and isolated query strings. Works in PCRE and PCRE2. Full use case: if (isset($_GET["sst"])) { // validate...
Submitted by
Martin Holt
-
20 days ago
2023-09-13 00:35
(Last modified 20 days ago)
2023-09-13 00:41
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
CSV
Java 8
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
-
23 days ago
2023-09-09 10:06
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
Opportunity Close
PCRE (PHP <7.3)
Prepare batch job for opportunity close
Submitted by
wistlo
-
24 days ago
2023-09-08 17:15
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
URL (URI) - TOTAL Breakdown: Named Groups (Supporting Literal, Relative, Dynamic URLs, with/without Filename/Ext, Query Parameters and/or Anchor Tags)
ECMAScript (JavaScript)
Need to FULLY Break Out EVERY Component of a URL? Like, as in "every constituent element individually accessible in its own named capture group?" Need it to be pre-optimized and fully ECMA-compliant? Want to see exhaustive unit tests proving these claims (144 are included; all 144 execute in 6.5ms. ...
Submitted by
@JJ for Nerdy Deeds, LLC
-
24 days ago
2023-09-08 16:51
(Last modified 24 days ago)
2023-09-08 16:54
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
Adds custom prefix to tailwind classes
PCRE (PHP <7.3)
Or any other particular case where given any line that starts with the pattern "@apply" (or any other line heading) and it substitutes any word (list of characters without spaces), with or without puntuation in them, and it adds a custom prefix to all the words in that line but the line heading.
Submitted by
@drakopablo.dev
-
a month ago
2023-09-04 10:51
2
2 upvotes, 0 downvotes (score 34.2%) (You must be signed in to vote)
Invalid Windows Filename Chars
PCRE (PHP <7.3)
https://docs.microsoft.com/en-us/windows/win32/fileio/naming-a-file Integer value zero, sometimes referred to as the ASCII NUL character. Characters whose integer representations are in the range from 1 through 31, except for alternate data streams where these characters are allowed. For more info...
Submitted by
anonymous
-
a month ago
2023-09-04 05:47
(Last modified a month ago)
2023-09-04 05:54
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
0x28C6A6DdF8fF8A47A90A69bfE75cd89904a14d71
Golang
0x28C6A6DdF8fF8A47A90A69bfE75cd89904a14d71
Submitted by
anonymous
-
a month ago
2023-09-02 02:02
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
Match many cases of 8601
Java 8
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...
Submitted by
jpmand
-
a month ago
2023-08-31 11:08
(Last modified a month ago)
2023-08-31 14:32
1
2
3
4
...
653
Egyptian Phone Numbers
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Regular Expression
ECMAScript (JavaScript)
/
^
0
(
(
13
|
2
[
2
-
4
]
|
3
|
4
[
05
-
8
]
|
5
[
05
]
|
6
[
24
-
689
]
|
8
[
2468
]
|
9
[
235
-
7
]
)
\d
{7}
|
1
[
0125
]
\d
{8}
)
$
/
gm
Open regex in editor
Description
Loading markdown...
Submitted by
Mahmoud Mostafa
-
4 months ago
2023-05-28 06:37
(Last modified 4 months ago)
2023-05-28 07:27