Regular Expressions 101

Community Patterns

Community Library Entry

1

Regular Expression
PCRE (PHP <7.3)

/
<div class="col-md-3">\s*<div class="card text-center">[\s]*<img src="https:\/\/my\.dedino\.ir\/storage\/plans\/[\d]{3}\.jpg" width="200" height="200" class="card-img-top" alt="(?'MainerName'.*)">[\s]*<div class="card-body">[\s]*<h5 class="card-title">.*<\/h5>[\s]*<p class="card-text"><\/p>[\s]*<a href="https:\/\/my\.dedino\.ir\/panel\/cart\/preview\/[\d]{3}" class=".*">[\s]*<i class="fa fa-cart-plus"><\/i>\s*\W*<\/a>\s*<\/div>\s*<div class="card-footer text-muted text-center">\s*\W*<strong dir="ltr" data-toggle="tooltip" data-placement="top" title="(?'Rial'[\d]{0,3}[,]{0,1}[\d]{0,3}[,]{0,1}[\d]{0,3}[,]{0,1}[\d]{0,3})\s*\W*"><u>(?'P'0.[0-9]{0,10})\s*BTC\/\s*month<\/u>\s*<\/strong>\s*<\/div>\s*<div class="card-footer text-muted text-center">\s*\W*<strong dir="ltr">(?'Cost'[0-9]{0,2})%<\/strong>\s*<\/div>\s*<div class="card-footer text-muted text-center">\s*\W*<strong dir="ltr">(?'Total'0.[0-9]{0,10})BTC\s*\/month\s*<\/strong>\s*<\/div>\s*<\/div>\s*<\/div>
/
gm

Description

no description available

Submitted by anonymous - 4 years ago