> giving: ^([^_]_)\1*(([^_]_)\3*)?$ Sigh, not my day - that'll work fine for single byte ASNs, but to be of anyuse, change it to the following: ^([^_]+_)\1*(([^_]+_)\3*)?$ ..df