Tina Li wrote: > Hello, > >[skipped] > Personally I'd rather split it in several separate re's. Something like match_tag(tag_name) that matches tag group at the start of the string. hth, anton.