Re: [PHP] need help w/ Split()

2001-03-08 Thread Christian Reiniger
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

RE: [PHP] need help w/ Split()

2001-03-08 Thread Nathaniel Hekman
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