quick vb.net help needed

I have following value ... I would like to replace ' (single quote mark) with in '     ' to '' for each value ... please help!!

'x:\somepath\f\file.txt','Element Type,'x:\somepath\f\file.txt||x:\somepath\f\file.txt’,'453450337','JACK'S Houses’ I','2323314','PRRR','','10/14/14','0073332','','/  /',0

Open in new window

'x:\somepath\f\file.txt','Element Type,'x:\somepath\f\file.txt||x:\somepath\f\file.txt’,'453450337','JACK'''S Houses''’ I','2323314','PRRR','','10/14/14','0073332','','/  /',0

Open in new window

Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Fernando SotoRetiredCommented:
Hi  CalmSoul;

What are the rules to determine which ' characters needs to be modified seeming the ' character is also used in area where you do not want to replace them in.

For example it looks like a line from a csv file? So which columns will the ' character show up in that you want them to be replaced in, only in columns 3 and 5 for example. But if there are no rules then there is no way to know which one to replace.
CalmSoulAuthor Commented:
Hello Fernando:

Actually this is line of SQL query ... I need to replace those ' within '   ' with '''' so I can insert them in the database
Fernando SotoRetiredCommented:

You state the following, " I need to replace those ' within '   ' with '''' ", note from the two lines below that, JACK'S, but note that no space characters and another ' after it but yet you replaced it as shown in line two.  So the rule does not fit.

,'JACK'S Houses’ I','2323314',

,'JACK'''S Houses''’ I','2323314'

Open in new window

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
.NET Programming

From novice to tech pro — start learning today.