On Jan 12, 2007, at 10:30 AM, Phrogz wrote: > Phrogz wrote: >> James Edward Gray II wrote: >>> a = d.split(/(?:\r\n|[;, ])/) >> >> Way more elegant. Way to see beyond the step-by-step process to >> the end >> goal. > > Except that there's no need for the non-capturing group, so > (simplifying, not golfing): > > a = d.split( /\r\n|[;, ]/ ) You're right, it's not needed. I'm just in the habit of always surrounding | options of a regex with grouping to control their scope. I guess I've been bitten by those matching issues one time too many. James Edward Gray II