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,000 community submitted regex patterns...
3
8 upvotes, 5 downvotes (score 35.5%) (You must be signed in to vote)
everything that doesn't match .gitignore at the end
PCRE (PHP <7.3)
must match: selection/nl/example.xml selection/example.xml selection/blabla.txt selection/es/ ...
Submitted by
anonymous
-
9 years ago
2014-10-17 12:16
2
9 upvotes, 7 downvotes (score 33.2%) (You must be signed in to vote)
Positive Numbers greater than 0 with leading zeroes.
ECMAScript (JavaScript)
Accepts all positive numbers above 0. Accepts numbers with leading zeroes e.g.: 0123, 00123.
Submitted by
Sandeep Ranka
-
9 years ago
2014-10-17 05:57
0
5 upvotes, 5 downvotes (score 23.7%) (You must be signed in to vote)
Unicode alpha-numeric regex
PCRE (PHP <7.3)
Tests for all unicode language characters and number. Excludes any sentence joining characters etc.
Submitted by
Jamie
-
9 years ago
2014-10-16 12:40
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
External OR operator
PCRE (PHP <7.3)
Why doesn't recognize the second pattern after pipe | ?
Submitted by
Fede e Walter
-
9 years ago
2014-10-16 09:50
0
1 upvotes, 1 downvotes (score 9.5%) (You must be signed in to vote)
search h1 tag html
PCRE (PHP <7.3)
(.*?) example: Your best title
Submitted by
otharwa
-
9 years ago
2014-10-15 15:10
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
codegolf.SE cops&robbers histocrat#2
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
9 years ago
2014-10-15 14:50
0
3 upvotes, 3 downvotes (score 18.8%) (You must be signed in to vote)
Page Hangs in Chrome/Shows TIMEOUT on regex101.com
PCRE (PHP <7.3)
I have a regex like this: /^(A-Za-z0-9)([\.\_]?[A-Za-z0-9-]+)(\.[A-Za-z]{2,6})+(\/A-Za-z+)*$/ and I want to test the string like: webmail.google.com.qqqqqqqqqqqqqqqqqqq....... But it shows TIMEOUT. I know that string is invalid for given regex. But I do this because when I input this string and ma...
Submitted by
sam
-
9 years ago
2014-10-15 14:39
28
77 upvotes, 49 downvotes (score 52.4%) (You must be signed in to vote)
CSV line parsing
PCRE (PHP <7.3)
Captures all fields from a CSV file's line. Can be customized with user-defined field separator and protecting character.
Submitted by
Various
-
9 years ago
2014-10-15 13:22
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
Get the command
ECMAScript (JavaScript)
Simply gets the command from a script command, automatically removes unwanted spaces.
Submitted by
anonymous
-
9 years ago
2014-10-15 09:39
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
Simple script command and parameter grabber
ECMAScript (JavaScript)
no description available
Submitted by
anonymous
-
9 years ago
2014-10-15 09:32
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
Test for Ross
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
9 years ago
2014-10-15 09:26
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
Finding URLs within full text
ECMAScript (JavaScript)
Finds URLs in a larger body of text. URLs may or may not be enclosed in punctuation, such as parentheses, that are not part of the URL.
Submitted by
D0nB1z
-
9 years ago
2014-10-14 20:55
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
how to extract that 87% ??
PCRE (PHP <7.3)
hello, using a monitoring software module from sentrysoftware i want to extract and read that value % (87% ). My chances are to read this line (it's a command output: "/dev/u04omnia_lv 100.00 13.33 87% 57 1% /u04/oradata/OMNIA") by columns (but they aren't columns) or with "befor...
Submitted by
Steve
-
9 years ago
2014-10-14 14:26
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
Movies title extractor
PCRE (PHP <7.3)
Extract the title from a movie file
Submitted by
dshinigami
-
9 years ago
2014-10-13 22:00
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
Proper-case word separator
PCRE (PHP <7.3)
Takes a string like 'ImageEditHRStuffSomeMOREStuff' and produces -> 'Image Edit HR Stuff Some MORE Stuff'
Submitted by
Michael Keyser
-
9 years ago
2014-10-13 16:17
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
parse salesforce records
PCRE (PHP <7.3)
parse one column query from sf developer console
Submitted by
anonymous
-
9 years ago
2014-10-10 19:15
3
6 upvotes, 3 downvotes (score 35.4%) (You must be signed in to vote)
Fetch data between curly braces with plain text
PCRE (PHP <7.3)
This regex fetch only the data between content in curly braces (first occurrence, use preg_match_all in php, for all occurrences). This is useful for bad JSON files with wrong format or text between.
Submitted by
shakaran87
-
9 years ago
2014-10-10 13:35
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
hr
ECMAScript (JavaScript)
no description available
Submitted by
artem
-
9 years ago
2014-10-10 08:25
1
2 upvotes, 1 downvotes (score 20.8%) (You must be signed in to vote)
unity3d.com csharp lint regex
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
9 years ago
2014-10-08 18:18
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
ewqewq
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
9 years ago
2014-10-08 13:36
1
...
624
625
626
627
628
629
630
...
650
Replace text domain in WP i18n
2
2 upvotes, 0 downvotes (score 34.2%) (You must be signed in to vote)
Regular Expression
PCRE (PHP <7.3)
/
__
\(
\s
?
(
(
[
'"
]
)
(
(
(?!(?<!
\\
)
\2
)
.
)*
)
\2
)
,
'wprss'
\s
?
\)
/
g
Open regex in editor
Description
Loading markdown...
Submitted by
Xedin Unknown
-
9 years ago
2014-09-22 21:03