Regular Expressions 101

Community Patterns

Community Library Entry

0

Regular Expression
PCRE (PHP <7.3)

/
<div class="details-param-name">Артикул:<\/div>\s*<div class="details-param-value inplace-offset"\s*data-ng-bind="product\.offerSelected\.ArtNo"\s*data-ng-init="product\.offerSelected\.ArtNo = '(?'SKU'.+)'">\s*<\/div>.*<span class="price">\s*<span data-ng-if="product\.Price\.PriceString == null">\s*<div class="price-current cs-t-1">\s*<div class="price-number">\s*(?'PRICE'[\d ]+)<\/div>\s*<div class="price-currency"> руб\.<\/div>\s*<\/div>\s*<\/span>\s*<span data-ng-bind-html="product\.Price\.PriceString">\s*<\/span>\s*<\/span>
/
gsuU

Description

Учли цену с пробелом

Submitted by anonymous - 7 years ago