Beginner Code for Understanding RegEx