Updates cursorPos regular expression