I have some data resembling the following:
Mr,Bob,Smith,Bobs House,Bobs Road,,,Bobs City,,Bobs Postcode,"China,
People's Republic of",[EMAIL PROTECTED],,

And I would like to convert it to this:
"Mr","Bob","Smith","Bobs House","Bobs Road","~BLANK~","~BLANK~","Bobs
City","~BLANK~","Bobs Postcode","China~COMMA~ People's Republic
of","[EMAIL PROTECTED]","~BLANK~","~BLANK~"

Can anyone provide a/some tidy regex statement(s) that will do this for me.

Bonus points for being able to cater for things such as this:
Mr,Bob,Smith,Bobs "Fun" House,Bobs Road...
to
"Mr","Bob","Smith","Bobs ~QUOTE~Fun~QUOTE~ House","Bobs Road"...
but I don't think that's needed for my current set of data.

A thousand thankyou's to anyone able to help.

Peter

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Discover CFTicket - The leading ColdFusion Help Desk and Trouble 
Ticket application

http://www.houseoffusion.com/banners/view.cfm?bannerid=48

Message: http://www.houseoffusion.com/lists.cfm/link=i:21:919
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/21
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:21
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.21
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to