vbscript - detect word

Hi guys,

I have a csv file that has three words within quotes and separated by coma.

"word1", "word2", "word3".

these words can have different lenghts, but I need to retrieve the third one, without the quotes.
I have already identified the correct line (because the csv file could have many lines), but once I identify the line containing the word I need (which is actually the first one), I need to collect the third one. Do I need a regular expression ?
How could I accomplish that ?

Who is Participating?
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.

ShumsExcel & VBA ExpertCommented:

It can be achieved with Excel Formula, assuming your string is in A2, try below formula:
=TRIM(RIGHT(SUBSTITUTE(TRIM(MID(A2, FIND(" ", A2, FIND(" ", A2)+1)+1,256)),"""",REPT("",99)),99))

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
ferraristaAuthor Commented:
But I'm using a plain text file, not excel.... would that work ?
ShumsExcel & VBA ExpertCommented:
Open csv in Excel. change the cell and save it. Then re-open in text file, that will be gone.
ShumsExcel & VBA ExpertCommented:
No comment has been added to this question in more than 14 days, so it is now classified as abandoned.
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
VB Script

From novice to tech pro — start learning today.