Regular Expressions 101

Library entries

HTML1x

Vote

1

Regular Expression
javascript

/
alt="(.*?)" class="results-grid__provider-logo"><\/li> <li class="results-grid__item results-grid__annual-price"><!----> <p><span class="results-grid__annual-price--integer">£(\d{1,})<\/span> <span class="results-grid__annual-price--fractional">.(\d{1,}).*?\n\s{1,}(\d{1,}x)\n\s{1,}.*?\n\s{1,}(£\d{1,}\.\d{1,})\n\s{1,}.*?\n\s{1,}(\d{1,}x)\n\s{1,}.*?\n\s{1,}(£\d{1,}\.\d{1,})\n\s{1,}.*?\n\s{1,}(Total)\n\s{1,}.*?\n\s{1,}(£\d{1,}\.\d{1,})\n\s{1,}<\/dd><\/dl><\/li>
/
gm

Description

Loading markdown...
Submitted by anonymous - a year ago