Returning only the unknown part with preg_match
Posted: Fri Oct 20, 2006 6:38 am
I need to find multiple unknown strings from a long one. I know what is around them, but I dont what they are.
Example:
Here the KOIRA and SIKA are unknown to me, while the rest i can predict.
I know how to return something like from preg_match, but how do I get only the KOIRA, only the unknown part?
Example:
Code: Select all
ab=KOIRA*kana*hevonen=SIKA*lehmäI know how to return something like
Code: Select all
ab=KOIRA*kana*