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
Most upvotes
Most downvotes
Highest Score
Lowest Score
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 18,020 community submitted regex patterns...
1
URL REGULAR EXPRESSION CHALLENGE
PCRE (PHP <7.3)
Follow the instructions to match/don't match the following urls. Then post to comminity with title: [URL CHALLENGE]:
Submitted by
kostas trichas
-
10 years ago
1
Match Tags in ExpressionEngine
PCRE (PHP <7.3)
The second matcher will get EE tags from $tagdata.
Submitted by
Kyle Palko
-
10 years ago
1
testmmoj
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
10 years ago
1
Convert YYMMDD to DD/MM/YY
PCRE (PHP <7.3)
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
-
10 years ago
1
http://stackoverflow.com/questions/26108562/python-regex-trying-to-cre
Python
no description available
Submitted by
anonymous
-
10 years ago
1
find single character
PCRE (PHP <7.3)
Why this regEx not find all single character? Why not work Start of string and End of string in bracket?
Submitted by
anonymous
-
10 years ago
1
Mips R-Type Instructions
PCRE (PHP <7.3)
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
-
10 years ago
1
Mips I-Type Instructions
PCRE (PHP <7.3)
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
-
10 years ago
1
search mailadress
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
10 years ago
1
input mandatory title
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
10 years ago
1
Europead date or MSSQL Timestamp
PCRE (PHP <7.3)
Matches european dates (DD.MM.YYYY[ HH:MM:SS]) and MS-SQL Timestamp ({ts 'YYYY-MM-DD HH:MM:SS'})
Submitted by
anonymous
-
10 years ago
1
semver
PCRE (PHP <7.3)
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>
-
10 years ago
1
Test
PCRE (PHP <7.3)
test
Submitted by
royskatt
-
10 years ago
1
group & access several lines
PCRE (PHP <7.3)
Hi there, I try to learn and improve my regex knowledge... I want to fetch all lines below the "="-line and between the "-"-lines and access them via $1 - $n. Is this possible? Or should I fetch the whole string below the "="-line and the last "-"-line, then seperate the lines after that in another...
Submitted by
Floffy
-
10 years ago
1
ewqewq
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
10 years ago
1
hr
ECMAScript (JavaScript)
no description available
Submitted by
artem
-
10 years ago
1
parse salesforce records
PCRE (PHP <7.3)
parse one column query from sf developer console
Submitted by
anonymous
-
10 years ago
1
Proper-case word separator
PCRE (PHP <7.3)
Takes a string like 'ImageEditHRStuffSomeMOREStuff' and produces -> 'Image Edit HR Stuff Some MORE Stuff'
Submitted by
Michael Keyser
-
10 years ago
1
Movies title extractor
PCRE (PHP <7.3)
Extract the title from a movie file
Submitted by
dshinigami
-
10 years ago
1
Tv Series name extractor
Python
Extract from a tv series file the name of the series, the season, episode and the title.
Submitted by
dshinigami
-
10 years ago
1
...
71
72
73
74
75
...
901
Community Library Entry
0
Regular Expression
PCRE2 (PHP >=7.3)
/
preg_replace
(
'!
\s
+
!',
'
',
$
s
)
/
gm
Open regex in editor
Description
/preg_replace('!\s+!', ' ', $s)/gm
Submitted by
anonymous
-
2 years ago