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 12,060 community submitted regex patterns...
1
STEAM GAME KEYS
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
8 years ago
1
Decimal numbers
PCRE (PHP <7.3)
Matches decimal numbers as accepted by e.g. Octave.
Submitted by
anonymous
-
7 years ago
1
Dailymotion videos ids
PCRE (PHP <7.3)
find ids of video in dailymotion urls in text
Submitted by
anonymous
-
7 years ago
1
Strip Android Logs of Date/Time and process
PCRE (PHP <7.3)
Strip Android Logs of Date/Time and process. This helps if you want to diff 2 logs and remove the different date/time and process numbers
Submitted by
anonymous
-
7 years ago
1
Insert comma as thousands delimiter
PCRE (PHP <7.3)
The following regular expression can be used to insert commas as thousands delimiter. The pattern was taken from the http://www.dlang.org web site.
Submitted by
Unknown
-
7 years ago
1
Italian check codeline
PCRE (PHP <7.3)
Expression matches magnetic codeline of checks, in italian banking system. i.e. >1234567890 old layout check >1234567890- 103014250# 66666666+ --> new layout check (notice the '-' check number terminator)...
Submitted by
Benny
-
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
1
Lockbox Sätze #2
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
7 years ago
1
find field names
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
7 years ago
1
content
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
7 years ago
1
images
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
7 years ago
1
descr
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
7 years ago
1
My regex
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
7 years ago
1
Asadasdsd
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
7 years ago
1
show inventory Partial)
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
7 years ago
1
show inv (not for complex)
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
7 years ago
1
byline
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
7 years ago
1
Splunk - Masking data (SIM Card Example)
PCRE (PHP <7.3)
Splunk - Masking Data Uses defensive logic to account for data changes & supports Splunk Schema on Fly!
Submitted by
Tony Nesavich
-
7 years ago
1
Find Days. Simple format
PCRE (PHP <7.3)
Given a string, finds the days spoken about within the string. (US Implementation)
Submitted by
anonymous
-
7 years ago
1
Perl search exclude tags
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
7 years ago
1
...
509
510
511
512
513
...
603
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