Regular Expressions 101

Community Patterns

Community Library Entry

0

Regular Expression
PCRE (PHP <7.3)

/
<h1>(?'TITLE'.*)<\/h1>.*<div class="thumb_wrapper">\s*<div class="thumb">.*id=".*"\s*src="(?'PHOTO'[^"]*)".*<\/div>\s*<\/div>.*<div class="bx_slide">\s*<ul style="width: 100%;" id="bx_117848907_169300_slider_list">\s*(?'TEST'\s*<li data-value="\d*" style="width: 20%; padding-top: 20%;"><span class="cnt"><span class="cnt_item" style="background-image:url\('(?'PHOTOS'[^']*)'\);"><\/span><\/span><\/li>\s*)*<\/ul>\s*<\/div>.*<div class="item_price">\s*<span class="title">Цена:<\/span>.*<div class="item_current_price" id=".*">(?'PRICE'[\d ]*) руб\.<\/div>\s*<div class="item_economy_price" id=".*"(?: style="display: none")>(?:(?'DISCOUNT_PRICE'[\d ]*) руб\.)?<\/div>.*<\/div>.*<div class="item_info_section">.*<td class="prop-title">Бренд<\/td>\s*<td class="prop-value"><a href=".*">(?'MANUFACTURER'.*)<\/a><\/td>.*<td class="prop-title">Артикул<\/td>\s*<td class="prop-value">(?'VENDOR_CODE'.*)<\/td>.*<\/div>
/
gsuU

Description

no description available

Submitted by anonymous - 7 years ago