netimen: > Thank's but if i have several top-level groups and want them match one > by one: > text = "a < b < Ó > d > here starts a new group: < e < f > g >" What other requirements do you have? If you list them all at once people will write you the code faster. bye, Bearophile