I have the string "apple banana lemon melon".
I have applied on it the following regex for matching:
Code: Select all
/apple banana| banana lemon|lemon melon/ims[*]apple banana
[*]banana lemon
[*]lemon melon
when i use preg_match_all/preg_match i get only the first subpattern that matches.
How can i get all of the 3 subpatterns ?
10x in advance