Hi, I am having an anoying time with regular expresions. I am trying to split a string up were non alpha numberic characters are ( \W ) but the problem is that it removes what I want as the split point. I want to split something like "hello everybody, how are you" into the array: "hello"," ","everybody",","," ","how"," ","are"," ","you" but the problem is if i do a split were it splits, it removes that character so if i did a split for \W on "hi everybody" id get "hi","everybody" I would like to have a way to keep this character and place it in the array using regular expresions if posible.
Thanks for any help
Thanks for any help
Comment