This:
/PAT1 (??{m!PAT2!}) PAT3/ [download]
In reply to Re^6: Regex fun by JavaFan in thread Regex fun by Hena