<?php $data = <<<DATA >0 Dollar</span >0.01 Dollar</span >0.00 Dollar</span >50.00 Dollar</span DATA; $regex = '/>\K(?=[0.]*[1-9])\d+(?:\.\d+)?+\h+Dollar(?=<)/'; preg_match_all($regex, $data, $matches); var_export($matches[0]);
You have javascript disabled. You will not be able to edit any code.