For a linguistics project, I am trying to match all occurrences of one or two consonants between vowels in some text. I am trying to write a very simple match in PHP ( preg_match_all), but after the match is destroyed, it will not be able to match again.
The following is very simple and should do the trick, but only match the first occurrence:
[aeiou](qu|[bcdfghjklmnprstvwxyz]{1,2})[aeiou]
In: officiosior: offiand osicome back, but not icibecause the end iis the first part of the match in the second match.
As far as I can tell, this is impossible to do, but is there a decent way to get around the problem?
source
share