- - Code, Content, and Presentation
- -- PHP Server Side Scripting
- ---- Regular Expression.can it be done?
alphacooler - 11:13 pm on Jun 30, 2007 (gmt 0)
I'm a n00b when it comes to regular expressions. I can do the basics, but need some help with this one.
Say I have a paragraph with the following sentence:
|You need to replace the carburetor, transmission, spark plugs, both driver and passenger mirrors, and tailights. This should come out to around $800. |
I want to be able to pull out all the comma separated words/phrases and then re-order them and put them back into the paragraph..
So I would end up with something like:
|You need to replace the both driver and passenger mirrors, transmission, spark plugs, and tailights, carburetor. This should come out to around $800. |
Thread source: http://www.webmasterworld.com/php/3383164.htm
Brought to you by WebmasterWorld: http://www.webmasterworld.com