jquery selector: Replacing {0,1} for ? in a regex.