improved the regular expression example