On Thursday 08 March 2001 18:43, you wrote:
> I am attempting to take a line of text (a list) that has been entered
> into a form and split it into the appropriate parts, placing them into
> an array. I am splitting the input on commas, semi-colons, and spaces.
>
> Problem 1: Is with "white spac
Your regex is incorrect. You've written:
/[\,\;\s*]/
That * means "match a *" because it's inside the brackets. Put it outside,
like this (actually use a + instead):
/[\,\;\s]+/
to match 1 or more of any of those characters.
That may not be exactly what you want, since that
2 matches
Mail list logo