Shoora
5/14/2019 - 7:19 PM

php preg

php preg

<?php 

$result = preg_match('/<spa.+>(.+)<\/span>/',$str,$found);
$result = preg_match('/<strong>(.+)<\\/strong>/',$str,$found);

		$ulclass =  preg_replace('/<a /', '<a class="cms30_link" onclick="yaCounter49161010.reachGoal(' . "'callback_click'" . '); return true;"', $ulclass, 1);
		return  preg_replace('/<a href/', '<a class="cms30_link" onclick="yaCounter49161010.reachGoal('."'calculate_click'".'); return true;" href', $ulclass, 1);


$new_key =   preg_replace('/^\./', '', $new_key, 1);
 ?>