For example, I have a string "xxxABCDExxx", and I have two keywords "ABC" and "CDE", now I want get "ABC" and "CDE" from string.
In php, preg_match_all('/(ABC|CDE)/'..
will only match ABC or CDE, but not both.
Is there any way to match keywords even they're adjacent and share the same word.