Refactored ConfigParser to using regexp instead of explodes.