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
Community Patterns
Search among 17,240 community submitted regex patterns...
1
nginx log parser
Python
separate nginx log into database table-style fields
Submitted by
wgzhao
-
10 years ago
1
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
-
10 years ago
1
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
-
10 years ago
1
Tv Series name extractor
Python
Extract from a tv series file the name of the series, the season, episode and the title.
Submitted by
dshinigami
-
10 years ago
1
Movies title extractor
PCRE (PHP <7.3)
Extract the title from a movie file
Submitted by
dshinigami
-
10 years ago
1
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
-
10 years ago
0
DOI matcher
Python
Matches any valid DOI
Submitted by
jpowell
-
10 years ago
1
parse salesforce records
PCRE (PHP <7.3)
parse one column query from sf developer console
Submitted by
anonymous
-
10 years ago
3
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
-
10 years ago
1
hr
ECMAScript (JavaScript)
no description available
Submitted by
artem
-
10 years ago
1
unity3d.com csharp lint regex
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
10 years ago
1
ewqewq
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
10 years ago
0
Hostname-Match not found
PCRE (PHP <7.3)
I'm trying to match a hostname input with the following properties: a-z A-Z 0-9 : - are allowed ; doesnot start or end with - ; "." can be used to separate different labels of the hostname. But gives no match for this regex: ^(a-zA-Z0-9|(?<!-)\.(?![-.]))[a-zA-Z0-9]+)?)$...
Submitted by
Revathy
-
10 years ago
1
group & access several lines
PCRE (PHP <7.3)
Hi there, I try to learn and improve my regex knowledge... I want to fetch all lines below the "="-line and between the "-"-lines and access them via $1 - $n. Is this possible? Or should I fetch the whole string below the "="-line and the last "-"-line, then seperate the lines after that in another...
Submitted by
Floffy
-
10 years ago
2
fail2ban real expression for w00tw00t
PCRE (PHP <7.3)
A real fai2ban expression for w00tw00t with alias substitution
Submitted by
MarcD
-
10 years ago
5
Separate words (works with spaces, dashes and underscores)
PCRE (PHP <7.3)
no description available
Submitted by
marcoslhc
-
10 years ago
5
Find All Python imports
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
10 years ago
3
php input:date yyyy-mm-dd
PCRE (PHP <7.3)
improved "Ahmed Z" regexp. PHP date format (and input[type=text] format date too): YYYY-MM-DD. Year between [1900-2099]. No leap year check. Month 02 is limited to 29 days.
Submitted by
Oropesa
-
10 years ago
-2
link
Python
no description available
Submitted by
NTP-[SADAS]
-
10 years ago
2
PAN verification regex
PCRE (PHP <7.3)
Regex to verify PAN in India
Submitted by
Anirban
-
10 years ago
1
...
836
837
838
839
840
...
862
LiteralMatch int/float
1
Regular Expression
PCRE (PHP <7.3)
/
^
(
0
|
[
1
-
9
]
{1}
\d
{0,7}
)
(
\.
{1}
\d
{1,4}
?
)?
$
/
Open regex in editor
Description
For matching numeric literals in equations
Submitted by
Anttij
-
8 years ago