Regular Expressions 101

Community Patterns

Community Library Entry

0

Regular Expression
PCRE (PHP <7.3)

/
<tr[^>]*>[^<]*<td[^>]*>[^>]*>(?<No>[^<]*)<[^>]*>[^<]*<\/td>[^<]*<td[^>]*>[^<]*(<strong>)?[^>]*>(<div[^>]*>)?([^<]*<img[^>]*>)*(?<jmeno>[^<]*)(<a[^>]*>)?[^<]([^<]*<img[^>]*>)?([^<]*<\/a>)?(<strong>)?(<img[^>]*>)?[^<]*(<\/span><\/strong>)?(<font[^>]*>)?[^<]*(<a[^>]*>)?([^<]*<img[^>]*><\/a>)?[^<]*(<\/font[^>]*><\/strong>[^<]*<\/div>)?[^<]*[^<]*(<\/span>)?[^<]*(<\/strong>)?[^<]*<\/td>[^<]*<td[^>]*>[^<]*<s[^>]*>(?<level>[^<]*)<\/s[^>]*><\/td>[^<]*<td[^>]*>[^<]*<div[^>]*>(<strong>[^<]*)?(<font[^>]*>)?([^<]*<a[^>]*>)?(?<dist_ID>[^<]*)(<\/a>)?[^<]*(<\/font>)?[^<]*(<\/strong>)?[^<]*<[^i]*i[^")]*"[^"]*"[^(?=alt)]*alt[^"]*"(?<active>[^"]*)[^<]*<[^<]*<\/td>[^<]*<td[^>]*>[^<]*<span[^>]*>[^<]*(<a[^>]*>)?(?<email>[^<]*)(<\/a>)?[^>]*><\/td>[^<]*<td[^>]*>[^>]*>(?<phone>[^<]*)<[^>]*><\/td>[^<]*<td[^>]*>[^>]*>(?<bus_phone>[^<]*)<[^<]*<\/td>[^<]*<td[^>]*>[^<]*<[^<]*<[^<]*<\/td>[^<]*<td[^>]*>[^>]*>(?<country>[^<]*)<[^<]*<\/td>[^<]*<td[^>]*>[^>]*>(?<rank>[^<]*)<[^<]*<\/td>[^<]*<td[^>]*>[^>]*>(?<sponzor_ID>[^<]*)[^>]*>[^<]*<\/td>[^<]*<td[^>]*>[^>]*>(?<sponzor_name>[^<]*)[^>]*[^<]*<\/td>[^<]*<td[^>]*>[^>]*>(?<obnova>[^<]*)[^<]*<[^<]*<\/td>[^<]*<td[^>]*>[^>]*>(?<sleva>[^<]*)<[^<]*<\/td>[^>]*>[^>]*>(?<PGV>[^<]*)[^>]*><\/td>[^>]*>[^>]*>(?<OV>[^<]*)[^>]*><\/td>
/
gm

Description

tohle byla fuška :-)

Submitted by anonymous - 7 years ago