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
4
18 upvotes, 14 downvotes (56% like it) (You must be signed in to vote)
pcre
Separate words (works with spaces, dashes and underscores)
no description available
Submitted by
marcoslhc
-
9 years ago
5
5 upvotes, 0 downvotes (100% like it) (You must be signed in to vote)
pcre
Find All Python imports
no description available
Submitted by
anonymous
-
9 years ago
3
7 upvotes, 4 downvotes (64% like it) (You must be signed in to vote)
pcre
php input:date yyyy-mm-dd
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
-
9 years ago
2
2 upvotes, 0 downvotes (100% like it) (You must be signed in to vote)
pcre
PAN verification regex
Regex to verify PAN in India
Submitted by
Anirban
-
9 years ago
1
1 upvotes, 0 downvotes (100% like it) (You must be signed in to vote)
pcre
Test
test
Submitted by
royskatt
-
9 years ago
1
1 upvotes, 0 downvotes (100% like it) (You must be signed in to vote)
pcre
semver
Semantic Versioning regex pattern according to Tom Preston-Werner http://semver.org/ https://github.com/mojombo/semver/blob/master/semver.md ...
Submitted by
@gvlx <Gerardo Lisboa>
-
9 years ago
3
3 upvotes, 0 downvotes (100% like it) (You must be signed in to vote)
pcre
semver
Semantic Versioning regex pattern according to Tom Preston-Werner http://semver.org/ https://github.com/mojombo/semver/blob/master/semver.md First version of this regex follows semver 2.0.0....
Submitted by
@gvlx <Gerardo Lisboa>
-
9 years ago
1
1 upvotes, 0 downvotes (100% like it) (You must be signed in to vote)
pcre
Europead date or MSSQL Timestamp
Matches european dates (DD.MM.YYYY[ HH:MM:SS]) and MS-SQL Timestamp ({ts 'YYYY-MM-DD HH:MM:SS'})
Submitted by
anonymous
-
9 years ago
1
1 upvotes, 0 downvotes (100% like it) (You must be signed in to vote)
pcre
input mandatory title
no description available
Submitted by
anonymous
-
9 years ago
0
1 upvotes, 1 downvotes (50% like it) (You must be signed in to vote)
pcre
webongo
webongo test
Submitted by
webongo
-
9 years ago
1
1 upvotes, 0 downvotes (100% like it) (You must be signed in to vote)
pcre
search mailadress
no description available
Submitted by
anonymous
-
9 years ago
4
19 upvotes, 15 downvotes (56% like it) (You must be signed in to vote)
pcre
Remove HTML tags
This regex is used to remove HTML tag on string
Submitted by
Jordane BACHELET
-
9 years ago
1
1 upvotes, 0 downvotes (100% like it) (You must be signed in to vote)
pcre
Mips I-Type Instructions
Parses an I-Type Mips instruction. You can add and remove instructions in the list to support more I-Type instructions. Will detect only "addi", "andi" or "ori" as is
Submitted by
lunfel
-
9 years ago
1
1 upvotes, 0 downvotes (100% like it) (You must be signed in to vote)
pcre
Mips R-Type Instructions
Parses an R-Type Mips instruction. You can add and remove instructions in the list to support more R-Type instructions. Will detect only "add", "and", "nor" or "sub" as is
Submitted by
lunfel
-
9 years ago
1
1 upvotes, 0 downvotes (100% like it) (You must be signed in to vote)
pcre
find single character
Why this regEx not find all single character? Why not work Start of string and End of string in bracket?
Submitted by
anonymous
-
9 years ago
-2
1 upvotes, 3 downvotes (25% like it) (You must be signed in to vote)
pcre
get all href=()
no description available
Submitted by
artyom lisovskij
-
9 years ago
1
1 upvotes, 0 downvotes (100% like it) (You must be signed in to vote)
pcre
Convert YYMMDD to DD/MM/YY
I'm new to regular expressions and I've been searching high and low for this really simple date conversion from YYMMDD to DD/MM/YY e.g. 140923 to 23/09/14. Maybe I just didn't search hard enough, but here goes: Search/original string: (\d{4})(\d{2})(\d{2}) ...
Submitted by
Nike Begbaaji
-
9 years ago
1
1 upvotes, 0 downvotes (100% like it) (You must be signed in to vote)
pcre
testmmoj
no description available
Submitted by
anonymous
-
9 years ago
1
1 upvotes, 0 downvotes (100% like it) (You must be signed in to vote)
pcre
Match Tags in ExpressionEngine
The second matcher will get EE tags from $tagdata.
Submitted by
Kyle Palko
-
9 years ago
0
11 upvotes, 11 downvotes (50% like it) (You must be signed in to vote)
pcre
number with or without thousands separator(.) and decimal part(,)
number with or without thousands separator(.) and decimal part(,) ES: 100000; 1.646; 13323,33; 3.444.434,44
Submitted by
Basten
-
9 years ago
1
...
462
463
464
465
466
467
468
...
483
Command handling
Vote
4
4 upvotes, 0 downvotes (100% like it) (You must be signed in to vote)
Regular Expression
pcre
/
#Command
handler
#===============
#Start
of
the
line
^
#Match
the
command
name
(?<cmd>
[
\w\d
\-\_\?
]
+
)
#Catch
as
many
parameters
as
possible
(?<params>
(
\
+
(?<pre>
[^
\-\\\/
\w\d\s\n\r
]
?
)
[^
\"
]
*
\k<pre>
)*
)?
#Catch
as
many
switches
as
possible
and
save
them
into
group
(?<switches>
(
\
+
#Switch
starts
with
--
or
-
or
/
(?:
\-\-
|
\-
|
\/
)
#Gotcha!
[
\w\d
\_
]
+
)*
)?
#At
the
end
of
the
line
can
be
some
spaces
\
*
$
#End
of
the
line
/
gmx
Open regex in editor
Description
Loading markdown...
Submitted by
anonymous
- 9 years ago