I have these lines of text ($text variable)
CC 1,00
SS 1,00
PP 1,00
1,00
FF 1,00
now I would like to have only the numeric part of each line returned to me. But the important thing must be that I don't have to take lines that start with certain characters, like I would like to exclude "SS", "PP" and "FF". So I would like it to return me only the values of "CC" and only the numeric ones without leading characters.
In the meantime I have done this but it doesn't seem to work
preg_match_all("/((?!.SS|.FF|.PP).*\d{1,2}[\,\.]{1}\d{1,2})\w+/", $text, $matches);
Unfortunately, I don't get the desired result, where am I wrong? Thanks