in reply to real world extended regex examples

I really like this neat combination of positive looks behind and ahead by davidrw. It immediately sprang to mind when I saw your post but it might not come up in a search as no mention is made in it of extended methods.

Cheers,

JohnGG