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
1
1 upvotes, 0 downvotes (100% like it) (You must be signed in to vote)
pcre
Letter followed up by to 7 numerical digits
This regex will match an input string of the letter B (or b) followed up by to 7 numerical digits. It will fail if any letter/number/symbol is used other than B (or b) and more than 7 numbers are entered after B (or b). This is simple and was useful for validating a Court Case ID number for users af...
Submitted by
Alan Armbrust
-
7 years ago
1
1 upvotes, 0 downvotes (100% like it) (You must be signed in to vote)
pcre
SAIL Recipe Link Fix
Find the recipe anchor reference to be converted to a file reference. Replacement regex for sublime is: \L$3\.md
Submitted by
anonymous
-
7 years ago
1
1 upvotes, 0 downvotes (100% like it) (You must be signed in to vote)
pcre
Youtube URL Regex
Youtube URL validator Credit to: phuc77 The captured groups are: protocol...
Submitted by
Haroun SMIDA
-
7 years ago
1
1 upvotes, 0 downvotes (100% like it) (You must be signed in to vote)
pcre
Match youtube id
Match any youtube id Working with the following links : https://www.youtube.com/watch?v=DFYRQ_zQ-gk&feature=featured https://www.youtube.com/watch?v=DFYRQ_zQ-gk...
Submitted by
Haroun SMIDA
-
7 years ago
1
1 upvotes, 0 downvotes (100% like it) (You must be signed in to vote)
pcre
C# replace property declaration with source to destination mapping
Takes a set of property declarations to use for destination and source mapping using substitution. substition example: dst.$5 = src.$5; Basic productivity tool ... I used it for creating an automapper type converter
Submitted by
Justin Echternach
-
7 years ago
1
1 upvotes, 0 downvotes (100% like it) (You must be signed in to vote)
pcre
TRIM: Remove spaces at the begin and at the end of the string | Elimina espacios al inicio y final de la cadena de texto
**Removes leading and trailing spaces from the text **Example (do not consider quotes): " Lorem ipsum dolor sit " returns "Lorem ipsum dolor sit"
Submitted by
anonymous
-
7 years ago
1
1 upvotes, 0 downvotes (100% like it) (You must be signed in to vote)
pcre
Fontawesome - Icon parser (hex + title)
Page with icons PHP example: Generate xml for android resources header('Content-Description: File Transfer'); header("Content-Type: text/xml");...
Submitted by
IgorSkv
-
7 years ago
1
1 upvotes, 0 downvotes (100% like it) (You must be signed in to vote)
pcre
UTC Time Matcher
This expression verify an UTC time like UTC+02:00 or UTC-12:30
Submitted by
anonymous
-
7 years ago
1
1 upvotes, 0 downvotes (100% like it) (You must be signed in to vote)
pcre
SSN
no description available
Submitted by
anonymous
-
7 years ago
1
1 upvotes, 0 downvotes (100% like it) (You must be signed in to vote)
pcre
STEAM GAME KEYS
no description available
Submitted by
anonymous
-
7 years ago
1
1 upvotes, 0 downvotes (100% like it) (You must be signed in to vote)
pcre
Decimal numbers
Matches decimal numbers as accepted by e.g. Octave.
Submitted by
anonymous
-
6 years ago
1
1 upvotes, 0 downvotes (100% like it) (You must be signed in to vote)
pcre
Dailymotion videos ids
find ids of video in dailymotion urls in text
Submitted by
anonymous
-
6 years ago
1
1 upvotes, 0 downvotes (100% like it) (You must be signed in to vote)
pcre
Strip Android Logs of Date/Time and process
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
-
6 years ago
1
1 upvotes, 0 downvotes (100% like it) (You must be signed in to vote)
pcre
Insert comma as thousands delimiter
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
-
6 years ago
1
1 upvotes, 0 downvotes (100% like it) (You must be signed in to vote)
pcre
Italian check codeline
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
-
6 years ago
1
1 upvotes, 0 downvotes (100% like it) (You must be signed in to vote)
pcre
Trim leading zeroes in numbers 012.210 => 12.21
Trim leading zeroes 012.210 => 12.21 .002300 => .0023
Submitted by
FAy
-
6 years ago
1
1 upvotes, 0 downvotes (100% like it) (You must be signed in to vote)
pcre
Lockbox Sätze #2
no description available
Submitted by
anonymous
-
6 years ago
1
1 upvotes, 0 downvotes (100% like it) (You must be signed in to vote)
pcre
find field names
no description available
Submitted by
anonymous
-
6 years ago
1
1 upvotes, 0 downvotes (100% like it) (You must be signed in to vote)
pcre
content
no description available
Submitted by
anonymous
-
6 years ago
1
1 upvotes, 0 downvotes (100% like it) (You must be signed in to vote)
pcre
images
no description available
Submitted by
anonymous
-
6 years ago
1
...
516
517
518
519
520
521
522
...
563
Log Scan Sample
Vote
1
1 upvotes, 0 downvotes (100% like it) (You must be signed in to vote)
Regular Expression
pcre
/
(
[
A
-
z
]
{3}
[
\d
]
{2}
[
\d
]
{1,2}
:
[
\d
]
{1,2}
:
[
\d
]
{1,2}
)
(
[
\d
]
{1,3}
\.
[
\d
]
{1,3}
\.
[
\d
]
{1,3}
\.
[
\d
]
{1,3}
)
(
\[
S
\=
[
\d
]
{9}
\]
)
(
\[
[
A
-
z
]
ID=
.
{1,18}
\]
)
\s
{1,3}
(
\(
N
\s
[
\d
]
{5,20}
\)
)?
(
\s
+
(
.
*
)
)
\s
{1,3}
?
(
\[
Time:
.
*
\]
)?
/
gm
Open regex in editor
Description
Loading markdown...
Submitted by
sdf
- 2 years ago