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}

torstatus.blutmagie.de list parser

Vote

1

Regular Expression
python

"
<tr class='(.)'><td class='TR(.)'><a href='http://www\.openstreetmap\.org\/\?mlon=([-\d\.]+)&mlat=([-\d\.]+)&zoom=\d+' target='_blank'><img src='img\/flags\/(\w+)\.gif' class='flag' width='\d+px' title='(.+)' alt='\w+' border='0'><\/a>&nbsp;<a href='router_detail\.php\?FP=([a-zA-Z0-9]+)' target='_blank'>([^\<]+)<\/a><\/td><td class='TDb'><table cellspacing='0' cellpadding='0' class='bwb'><tr title='([^']+)'><td class='bwr.?'><img src='img/bar/\d+.png' width='\d+px' height='15px' alt='\d+'></td><td>&nbsp;<small>&nbsp;\d+</small></td></tr></table></td><td class='TDc.?'>([^<]+)</td><td class='TDS'><table class='iT'><tr><td class='iT'>([^\[]+)\[<a class='who' href='/cgi\-bin/whois.pl\?ip=[\d\.]+' target='_blank'>([\d\.]+)</a>\]</td>(<td><img src='img/status/Fast.png' title='Fast Server' alt='Fast Server'></td>)?(<td><img src='img/status/Exit.png' title='Exit Server' alt='Exit Server'></td>)?(<td><img src='img/status/Dir.png' title='Directory Server' alt='Directory Server'></td>)?(<td><img src='img/status/Guard.png' title='Guard Server' alt='Guard Server'></td>)?(<td><img src='img/status/Stable.png' title='Stable Server' alt='Stable Server'></td>)?(<td><img src='img/status/Authority.png' title='Authority Server' alt='Authority Server'/></td>)?<td><img src='[^']+' title='([^']+)' alt='[^']+'></td>(<td><img src='[^']+' title='([^']*)' alt='[^']*'></td>)?</tr></table></td><td class='TDc'>(<b>)?(\d*)(</b>)?</td><td class='TDc'>(<b>)?([None\d]*)(</b>)?</td><td class='(F\d)'></td></tr>
"
g

Description

Loading markdown...
Submitted by bandoche - 7 years ago