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 11,480 community submitted regex patterns...
4
4 upvotes, 0 downvotes (score 51%) (You must be signed in to vote)
Equation matching (without equal)
Python
use this to get value of any side of an equation. You can combine this with https://regex101.com/r/fH5kJ1/1
Submitted by
Kerosene2000
-
8 years ago
2015-07-01 19:50
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
Both equation side matcher
PCRE (PHP <7.3)
This is able to match both side of an equation.
Submitted by
Kerosene2000
-
8 years ago
2015-07-01 19:49
0
1 upvotes, 1 downvotes (score 9.5%) (You must be signed in to vote)
replicated pageContent id within a div
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
8 years ago
2015-07-01 18:48
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
test
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
8 years ago
2015-07-01 17:37
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
Q_Property
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
8 years ago
2015-07-01 08:56
-2
1 upvotes, 3 downvotes (score 4.6%) (You must be signed in to vote)
Select the numeric part of a price following an ascii dollar sign
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
8 years ago
2015-07-01 03:12
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
URL de playlist de salvavinilos.org
Python
URL de playlist de salvavinilos.org
Submitted by
anonymous
-
8 years ago
2015-06-30 20:48
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
#define const_value 4
PCRE (PHP <7.3)
#define const_value 4 to const uint8_t const_value 4
Submitted by
Big Chuck Dawg
-
8 years ago
2015-06-30 17:21
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
const uint8_t T_SYN_3 23
PCRE (PHP <7.3)
const uint8_t T_SYN_3 23 to const uint8_t T_SYN_3 = 23;
Submitted by
Big Chuck Dawg
-
8 years ago
2015-06-30 17:05
1
9 upvotes, 8 downvotes (score 31%) (You must be signed in to vote)
FQDN Fully Qualified Domain Name
PCRE (PHP <7.3)
Allow only two or more labels. Fix deprecated FQDN regexp not passing on test "dicas-l.com.br"
Submitted by
Rafael Justo and Mauro Trajber
-
8 years ago
2015-06-30 16:04
0
1 upvotes, 1 downvotes (score 9.5%) (You must be signed in to vote)
Find array ending with comma
PCRE (PHP <7.3)
Useful for finding array error. Example: {'id':'1','name':'test',} Finds the ",}" from the example
Submitted by
anonymous
-
8 years ago
2015-06-30 15:57
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
Limpar caracteres telefone
Python
Limpa os caracteres especiais e letras de um telefone imputado
Submitted by
anonymous
-
8 years ago
2015-06-30 14:03
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
Phone number tests
PCRE (PHP <7.3)
Test a given string for phone number variations and extract th parts.
Submitted by
anonymous
-
8 years ago
2015-06-30 13:40
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
Select any decimal
PCRE (PHP <7.3)
With this pattern possible select decimal that cantain comma or space
Submitted by
natan
-
8 years ago
2015-06-30 09:03
2
2 upvotes, 0 downvotes (score 34.2%) (You must be signed in to vote)
Получение числа, которым заканчивается строка
PCRE (PHP <7.3)
no description available
Submitted by
summer_rain
-
8 years ago
2015-06-30 08:25
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
Regex_Article
PCRE (PHP <7.3)
Start with two letters and followed by any number of Integers
Submitted by
S
-
8 years ago
2015-06-30 07:35
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
inline-sub-via-sed
PCRE (PHP <7.3)
regex for inline substitution w/ sed
Submitted by
anonymous
-
8 years ago
2015-06-29 23:08
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
Crop mikrotik neighbor lines
PCRE (PHP <7.3)
no description available
Submitted by
neilius + Captain_Haddock
-
8 years ago
2015-06-29 18:50
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
Extract values from log
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
8 years ago
2015-06-29 14:54
3
3 upvotes, 0 downvotes (score 43.8%) (You must be signed in to vote)
Cisco ASA
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
8 years ago
2015-06-29 12:57
1
...
519
520
521
522
523
524
525
...
574
prevent-sanitzation
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
Regular Expression
PCRE (PHP <7.3)
/
^\s
*
(
https
?
|
ftp
|
mailto
|
tel
|
file
)
:
.
*
(?!
\.
(
js
|
html
)
)
$
/
gm
Open regex in editor
Description
Loading markdown...
Submitted by
anonymous
-
8 years ago
2015-06-10 17:03