I am trying to find the word and add a number next to it. How could he do? I tried with the code below, but I could not. Could anyone help me? Thank you!
$string = 'I220ABCD I220ABCDEF I220ABCDEFG'
if (preg_match("/I220.*/", $string, $matches)) {
echo $matches[0];
}
Expected result: I220ABCD9 I220ABCDEF10 I220ABCDEFG11