<?php $re = '`<span[^<>]*\bclass="[^"]*(?<class>email_[^\s"]*)[^"]*">\h*(?<mail>[^\s@]+@[^\s@]+)\h*<\/span>`'; $str = '<span class=" xx email_p_14 xx "> labore@et.de </span>'; preg_match_all($re, $str, $matches, PREG_SET_ORDER, 0); print_r(array_filter($matches[0], function ($k) { return !is_numeric($k); }, ARRAY_FILTER_USE_KEY));
You have javascript disabled. You will not be able to edit any code.