Regular
Expressions
101
Please wait while the app is loading...
Please enable JavaScript to use this web application.
Regular
Expressions
101
@regex101
Donate
Sponsor
Contact
Bug Reports & Feedback
Wiki
What's new?
What's new?
Loading content...
Close
Regex Editor
Regex Editor
Regex Library
Regex Library
Account
Account
Regex Quiz
Regex Quiz
Settings
Settings
Live Help
Live Help
Order By
Most Recent
Most Points
Fewest Points
Filter by Flavor
PCRE2
PCRE
ECMAScript
Python
Golang
Java
.NET
Sponsors
All your environment variables, in one place
Library entries
Search library
3
4 upvotes, 1 downvotes (80% like it) (You must be signed in to vote)
pcre
apache access log
parse the apache access log
Submitted by
pagu
-
7 years ago
3
3 upvotes, 0 downvotes (100% like it) (You must be signed in to vote)
pcre
pronouceable strings
find pronouceable 10 letter srings that are either all caps or all lowercases based on jsbin.com pronouceable urls
Submitted by
anonymous
-
7 years ago
3
3 upvotes, 0 downvotes (100% like it) (You must be signed in to vote)
pcre
To search for a image tag
This pattern would select the whole image tag
Submitted by
Dulsara Dhanuka Sethunga
-
7 years ago
3
3 upvotes, 0 downvotes (100% like it) (You must be signed in to vote)
pcre
Active Affiliate, Contractor or Employee
no description available
Submitted by
MR
-
7 years ago
3
4 upvotes, 1 downvotes (80% like it) (You must be signed in to vote)
pcre
Match a valid IPv4 or IPv6 address
This regular expression will match an IPv4 address as well as both compressed or uncompressed IPv6 address.
Submitted by
Tom Groeneveld, SevOne.com
-
7 years ago
3
3 upvotes, 0 downvotes (100% like it) (You must be signed in to vote)
pcre
CSS Length Units
Matches CSS Length Units according to: http://www.w3schools.com/cssref/css_units.asp
Submitted by
Sander Backus
-
7 years ago
3
3 upvotes, 0 downvotes (100% like it) (You must be signed in to vote)
pcre
Script Tags
This is used when removing Script Tags and their content.
Submitted by
Chris Sumners
-
7 years ago
3
3 upvotes, 0 downvotes (100% like it) (You must be signed in to vote)
pcre
Time duration format
Match time duration in the following formats only: 1h 30m 59m 1h 33m 11h 2m
Submitted by
Pooja Khorjuvekar
-
7 years ago
3
3 upvotes, 0 downvotes (100% like it) (You must be signed in to vote)
pcre
Proxy matcher
Matches proxies in ip:port format. Takes into account that octets cant start with a 0, and that octets that are not the first octet can be a 0 if there are no more numbers behind it.
Submitted by
Dank meme machine
-
7 years ago
3
3 upvotes, 0 downvotes (100% like it) (You must be signed in to vote)
pcre
Escherichia coli, partial genome simple coding region search
NC_000913.3 Escherichia coli str. K-12 substr. MG1655, patial genome
Submitted by
anonymous
-
7 years ago
3
4 upvotes, 1 downvotes (80% like it) (You must be signed in to vote)
pcre
french phone number + match right part
Matches french numbers (not special numbers like 115, 18). First matching group contains the right part without prefix (0, +33, 33, 033, or 0033).
Submitted by
xdrm-brackets
-
7 years ago
3
4 upvotes, 1 downvotes (80% like it) (You must be signed in to vote)
pcre
JSON recognition
no description available
Submitted by
anonymous
-
7 years ago
3
3 upvotes, 0 downvotes (100% like it) (You must be signed in to vote)
pcre2
National Insurance Number regular expression
This regular expression is build from the description of NINO number of GOV.UK,
Submitted by
Iftakhar Husan
-
2 years ago
3
3 upvotes, 0 downvotes (100% like it) (You must be signed in to vote)
pcre2
Livestock - Visual tag and Back tag
Visual tag and Back tag cannot more than 15 characters or only can contain uppercase, lowercase, space and dash.
Submitted by
Adrian Yim
-
2 years ago
3
3 upvotes, 0 downvotes (100% like it) (You must be signed in to vote)
pcre2
camelCase2snake_case
Convert camelCase to snake_case def camelCase2snake_case(txt): """ Convert camelCase to snake_case https://regex101.com/library/wUcSv4...
Submitted by
JV-conseil
-
2 months ago
3
3 upvotes, 0 downvotes (100% like it) (You must be signed in to vote)
pcre2
example
example
Submitted by
anonymous
-
2 years ago
3
3 upvotes, 0 downvotes (100% like it) (You must be signed in to vote)
pcre2
Match any url in text or html (http, https)
Match any url in text or html (http, https)
Submitted by
Jérémy Munsch
-
a year ago
3
3 upvotes, 0 downvotes (100% like it) (You must be signed in to vote)
pcre
HSL(A) Color Matching
This allows for both hsl and hsla color patterns to be matched. hsla(50.5deg, .531%, .9%, 1.0) The hue can be matched without the word deg. Hue is from 0-360 Percentage allows for decimals. Percentage is from 0-100%...
Submitted by
anonymous
-
4 years ago
3
3 upvotes, 0 downvotes (100% like it) (You must be signed in to vote)
pcre
Regex tutorial
Case insensitive match the whole word betwween \bword\b
Submitted by
anonymous
-
3 years ago
4
15 upvotes, 11 downvotes (58% like it) (You must be signed in to vote)
pcre
Strip multi-line (star) comments from JavaScript, while leaving any CDATA sections intact.
This regular expression removes multi-line (star) comments from JavaScript, while leaving any CDATA sections intact. Use the global (g) modifier to match them all (if you plan to use PHP's preg_replace, the g modifier is not necessary), and use the (s) modifier to make dots match newlines (this will...
Submitted by
Dane MacMillan
-
10 years ago
1
...
552
553
554
555
556
557
558
...
562
ps-Aux Named Token capture
Vote
1
1 upvotes, 0 downvotes (100% like it) (You must be signed in to vote)
Regular Expression
pcre
/
(
(?<User>
[
a
-
zA
-
Z0
-
9-_+
]
+
)
\s
+
(?<PID>
\d
{1,10000}
+
)
\s
+
(?<CPU>
\d
+
\.
\d
+
)
\s
+
(?<Memory>
\d
+
\.
\d
+
)
\s
+
(?<VSZ>
\d
{1,10000}
)
\s
+
(?<RSS>
\d
{1,10000}
+
)
\s
+
(?<TTY>
[
a
-
zA
-
Z0
-
9
\/\?
]
+
)
\s
+
(?<Stat>
[
a
-
zA
-
Z0
-
9
\+\-\<\>
]
+
)
\s
+
(?<START>
(?<StartDate>
(?<StartMonth>
[
a
-
zA
-
Z
]
+
)
(?<StartDay>
\d
+
)
)
|
(?<StartTime>
(?<StartHour>
\d
+
)
\:
(?<StartMinute>
\d
+
)
)
)
\s
+
(?<TIME>
(?<Hours>
\d
+
)
\:
(?<Minutes>
\d
+
)
)
\s
+
(?<Command>
.
*
\R
+
)
)
/
g
Open regex in editor
Description
Loading markdown...
Submitted by
anonymous
- 7 years ago