in reply to real world extended regex examples
Install Regexp::Common and snoop around in its guts. There's a few of these therein.