Regular Expressions 101

@regex101
Donate
Sponsor
Contact
Bug Reports & Feedback
Wiki
Whats new?

Library entries

0
pcre2
Submitted by Suraj Shah - an hour ago

Youtube Regex

Regex for youtube pattern
0
pcre2
Submitted by anonymous - 16 hours ago

Regix xinj xof

Bebebe
0
pcre2
Submitted by yimao - a day ago

KUN task name tempalte

Quick template to name a KUN task
0
python
Submitted by guif - 2 days ago

regex_restauration_V3

regex
0
python
Submitted by guif - 2 days ago

REGEX_SAUF_RESTAURATION_V1

regex
0
javascript
Submitted by anonymous - 2 days ago

fopen

asdf
0
pcre2
Submitted by Vipul Jha - 2 days ago

Indian Pincode

Indian area Pincode regex
0
pcre2
Submitted by PrimeTime416 - 2 days ago

HTML Table Parse

The pulls in and groups all HTML tables.
1
javascript
Submitted by donivanes - 3 days ago

Greater manchester postcode validation

🤯
0
javascript
Submitted by anonymous - 3 days ago

match

ádf
0
python
Submitted by guif - 4 days ago

regex_restauratio_Vé

regex
0
python
Submitted by guif - 4 days ago

regex_restauration

regex
0
pcre2
Submitted by fl0 - 4 days ago

parse/replace closed tag

parse and replace a {tag}..{/tag} or {tag}

Validate Syslog Messages

Vote

1

Regular Expression
pcre

/
<(?'Priority'[0-9]{1,3})>(?'Date'[a-zA-Z]{1,3}\s(?(?=\s)\s|[0-9])[0-9])\s(?'Time'(?:[0-1][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9])\s(?'Host'(?(?=\d)(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)+)|\w+)\s(?'Message'.+$)
/

Description

Loading markdown...
Submitted by dislick - 8 years ago