Q: Regex that matches specific word and then only x numbers after that without dirty characters I need a regex that turns this
FOOAB ABC98.24-?.3276

into this
ABC98243276

A specific word (like "ABC" or like "HOUSE" but not only the single characters of the word itself) and, immediately after that, 8 numbers and only the numbers (without dirty characters like ?-:;#).
Is that possible? Can you help me?
Thank you very much

A: Not Sure if I have understood your problem properly but with PHP I have tried something.
$string = "FOO ABC98.24-?.3276";
echo $string."<br/>";
$string = str_replace(str_split('/:.-*?"<>|'), '', $string);
$string = substr($string, strpos($string, " ") + 1);
echo $string;

