<?php $string = 'This is my test string with an <img test /> image. <test />'; $pattern = '/<([a-zA-Z0-9]*)(.*)\/>/iU'; $count = preg_match_all($pattern, $string, $matches, PREG_SET_ORDER); print_r($matches);
You have javascript disabled. You will not be able to edit any code.