Regex to check whether string contains numbers , Dot and Percentage sign? I need this function to return true if the string contains number, .dot or % sign.