Hi Emmanuel, >> 1) It doesn't solve the intellectual challenge. > >What about : ([^<]|(<+(A<+)*([^A<]|(A[^<>]))))*<+(A<+)*A>B ? > great!!! Looks really impressive and might even do what is required here. I wouldn't know, which is why I would try to go there in smaller steps. Respect, Helmut