Are you really asking how to optionally match a space with a regex?
In reply to Re^3: Parsing with RegEx into Array by ikegami in thread Parsing with RegEx into Array by mr_p