Added option for comma separated list

Added option for comma separated list in addition to a RegExp.