Replace Regexp constructor with // sintax