Regular Expression engine - backreferences without backtracking