Added autofocus on regex input