Make regexp html5 pattern work when observable