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 4,580 community submitted regex patterns...
3
date time
Python
1/Jul/2013 03:27:12
Submitted by
himel
-
11 years ago
-1
Twitter #hashtags
Python
Using the twitter API, take a tweet object and find & link #tags to embed in HTML
Submitted by
@triplec1988
-
11 years ago
1
...
227
228
229
Valid Emmet Candidate before Expansion
0
Regular Expression
PCRE2 (PHP >=7.3)
/
^
(?P<group>
(?P<structured>
(?P<single>
(?P<tag_first>
(?P<tag>
\d
+
(?:
\/
\d
+
)+
|
(?P<repnum>
\$
+
(?:
@
\^
*
-
?
\d
*
)?)
|
[
\w
:!-
]
)+
+
(?P<attr>
(?P<short_attr>
\.
(?P<short_val>
(?P>repnum)
|
[
\w
:!-
]
)*
|
\#
(?P>short_val)
*
)
|
(?P<long_attr>
\[