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
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 7.0 (C#)
Rust
Sponsors
There are currently no sponsors.
Become a sponsor today!
Community Patterns
Search among 14,160 community submitted regex patterns...
1
Validate URLs
PCRE (PHP <7.3)
Someone on IRC posted the following site: https://mathiasbynens.be/demo/url-regex which challgenged me to write a decent regex to match valid URLs in that list. This regex works in both pcre and javascript (you'll have to replace the pcre-specific syntax to make it work in JS). Don't actually use t...
Submitted by
Firas Dib
-
9 years ago
1
someone knows he answer?
PCRE (PHP <7.3)
are both strings matching, I wnat only the second one to match
Submitted by
anonymous
-
9 years ago
1
regex for phone numbers in Israel
PCRE (PHP <7.3)
regex for phone numbers in Israel
Submitted by
anonymous
-
9 years ago
1
KZ phone regexp
PCRE (PHP <7.3)
Regexp for kz website mask "+7(999) 999-99-99"
Submitted by
Iden
-
9 years ago
1
match the first sentence, ignoring enumerations
Python
no description available
Submitted by
Henrik Heimbuerger
-
9 years ago
1
获取discuz引用回复用户名
PCRE (PHP <7.3)
no description available
Submitted by
Paul Wang
-
9 years ago
1
Get path from URL
Python
extract the path from a URL returns one group (if matching) with the path info e.g. http://somedomain.com/some-page/ http://www.domain.com:8080/some-page/ https://www.google.com:8080/some-page/...
Submitted by
luke_aus
-
9 years ago
1
MySQLcase
Python
make sure mysql tables have the correct form
Submitted by
d
-
9 years ago
1
How to get various values within a pipe delimited string
PCRE (PHP <7.3)
We have a pipe delimited text file and each new record is separated by a CRLF. Each record has a fixed number of pipes, but not every column or field is valued, so there may be 2 or more pipes together. Is there a way to write a regex to parse out the third or fifth value? Many thanks in advance.
Submitted by
Jon
-
9 years ago
1
phanindra.vaga.ranama
Python
sdf
Submitted by
asdf
-
9 years ago
1
Repeating Group
PCRE (PHP <7.3)
There are 2 segments within this data that start with REF* and end with a tilde (~). I can capture one of them but not both. I've read and cant seem to figure this one out. I DO need to preface with the NM1*03 piece.
Submitted by
Chris.
-
9 years ago
1
Parsing the response of an oauth provider for token and session
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
9 years ago
1
dropping first digit (2) andy advice?
PCRE (PHP <7.3)
\_\d(.+) for _2015041122
Submitted by
jbt
-
9 years ago
1
list of comma separated dates in the form dd/mm/yyy
PCRE (PHP <7.3)
matches a list of comma separated dates in the form dd/mm/yyy. Between two dates must be only a comma. no other character are permitted: matches: 12/03/2011,23/19/1967 Doesn't match: 23/02/2010, 11/11/2011
Submitted by
reario
-
9 years ago
1
test
PCRE (PHP <7.3)
test
Submitted by
test
-
9 years ago
1
Timecode
Python
Regex to match standard timecode format.
Submitted by
Travis
-
9 years ago
1
CSV parsing
PCRE (PHP <7.3)
matches the exact fields of CSV files supports: qouted fields quoted fields containing commas, doubble quoutes, and newlines empty fields empty records arbitrary white space in, and outside quoted fields
Submitted by
Austin
-
9 years ago
1
Apache Access Log pattern
Python
Apache Web server log file format following the standard
Submitted by
Basil Tungekar
-
9 years ago
1
Error Regex
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
9 years ago
1
a-zA-Z + 0-9 + [!$%&?]
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
9 years ago
1
...
38
39
40
41
42
...
708
Facebook ID in Links or Widgets
0
Regular Expression
PCRE (PHP <7.3)
/
href="
.
[^
"
]
*
facebook
\.
com
\/
(
.
[^
"
]
*
)
/
g
Open regex in editor
Description
Find the ID/name of facebook users/pages in widgets, or links.
Submitted by
anonymous
-
9 years ago