adds pipe to regex to accomodatee digits, a lot closer to ruby's scan method