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 15,120 community submitted regex patterns...
0
Extract Lat/Lon Baltimore Crime Data
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
7 years ago
0
Twitter Hashtag Extraction
PCRE (PHP <7.3)
Extracts the latitude and longitude from the raw data.
Submitted by
anonymous
-
7 years ago
0
Twitter Lat/Lon Coordinate Extraction
PCRE (PHP <7.3)
This extracts latitude and longitude from a Tweet pulled through the public API.
Submitted by
Ed Fullman
-
7 years ago
0
Extract Twitter Hashtags
PCRE (PHP <7.3)
This regular expression extracts hashtags from the raw data.
Submitted by
anonymous
-
7 years ago
0
Regex
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
7 years ago
0
Filename from path
PCRE (PHP <7.3)
sample string /shared/logs/NONPR/btlp006249/wls/8.1/P/logs/applications/usageMeter-webservice-1.0.log
Submitted by
anonymous
-
7 years ago
0
get folder from link
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
7 years ago
0
exclude sub path names
PCRE (PHP <7.3)
helper rule for: to combine black and whitelist expressions this one acts as blacklist
Submitted by
anonymous
-
7 years ago
0
Lab2-1
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
7 years ago
0
Shorten Names: Use the positive lookahead ?= to match groups of that represent last names and first letters of the first name.
PCRE (PHP <7.3)
no description available
Submitted by
mglezsauri@hotmail.com
-
7 years ago
1
extract username from windows domain\user
ECMAScript (JavaScript)
no description available
Submitted by
anonymous
-
7 years ago
0
IPv4 address
PCRE (PHP <7.3)
matches valid ipv4 addresses
Submitted by
anonymous
-
7 years ago
0
Shorten Names: Abbreviate everything before and after DE or DEL
PCRE (PHP <7.3)
no description available
Submitted by
mglezsauri@gmail.com
-
7 years ago
0
Match Date strings in email body
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
7 years ago
0
Match array parenthesis (without internal parentheses) and replace to square brackets
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
7 years ago
1
Lockbox Sätze #2
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
7 years ago
0
Lockbox Sätze
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
7 years ago
1
number
ECMAScript (JavaScript)
no description available
Submitted by
anonymous
-
7 years ago
1
Trim leading zeroes in numbers 012.210 => 12.21
PCRE (PHP <7.3)
Trim leading zeroes 012.210 => 12.21 .002300 => .0023
Submitted by
FAy
-
7 years ago
0
Mercedes-Benz redirection rules
PCRE (PHP <7.3)
Redirect a model to a new page, any language, any country. Desktop and mobile website. You might need to remove backslash in Umbraco redirect file
Submitted by
anonymous
-
7 years ago
1
...
467
468
469
470
471
...
756
Trim leading zeroes in numbers 012.210 => 12.21
1
Regular Expression
PCRE (PHP <7.3)
/
^
(
\-
{0,1}
)
(?:
(?:
0
*
)
(
\d
+
)
)?
(
(?:
\.
)
(?:
\d
*
?
)
)?
0
*
$
/
gm
Open regex in editor
Description
Trim leading zeroes
012.210 => 12.21 .002300 => .0023
Submitted by
FAy
-
7 years ago