Avoid inserting (?:) before/after a group, and go back to slicing only the last few chars to look for lookaround
Avoid inserting (?:) before/after a group, and go back to slicing only the last few chars to look for lookaround

slevithan/xregexp,slevithan/xregexp,slevithan/xregexp