Ruby Full Stack Development: RegEx and I/O with Ruby