move regexp extensions to the end