Changed regular expression to be more portable.