Note to Self: Find the First Names

by Zach Briggs

These are notes to future Zach so that I may never need to look up this particular solution again. Today we are pulling an array of first names out of an array of full names. Unfortunately I couldn't quite get the regex to return the first names without leading spaces, so I punted and chained a strip call after the slice.

Visit Rubular to play in the sandbox. A one beer bounty for the person who can find the first names without leading spaces.

http://rubular.com/r/pNW6XF6J74