By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
438,216 Members | 1,023 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 438,216 IT Pros & Developers. It's quick & easy.

struggling with regexp

P: n/a
im trying to create a regexp that will work on data that is arranged thusly:
92291A , C92291A , 140191A , REM92291A

this data comprises of any number of model names with a space, a comma and a
space delimiting them and a space at the start and end of the string.

i wish to be able to remove any one of those elements and still retain the
arrangement of the data and delimiting.

thanks for your help
sticks
Jul 16 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
Sticks écrivit:
im trying to create a regexp that will work on data that is arranged
thusly:
92291A , C92291A , 140191A , REM92291A


no need for a regexp :

explode(' , ' , trim($chaine))

will provide you with an array containing each model name
--
P'tit Marcel
Jul 16 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.