What is the best way to extract words between quotes. - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: What is the best way to extract words between quotes. (
/showthread.php?tid=525983)
What is the best way to extract words between quotes. -
mirou123 - 15.07.2014
I am trying to extract words betweens quotes and make them a seperate string. For example I have:
Bla bla bla "Word 1" bla bla bla "Word 2" bla bla...
And I only want word 1 and word 2.
So what is the best way to do it?
Re: What is the best way to extract words between quotes. -
Jack_Leslie - 15.07.2014
https://sampwiki.blast.hk/wiki/Strfind
https://sampwiki.blast.hk/wiki/Strmid
Re : What is the best way to extract words between quotes. -
mirou123 - 15.07.2014
But how would I find the quote? beacause I would have to use """ at some point and that is not valid.
Re: What is the best way to extract words between quotes. -
Vince - 15.07.2014
That's why they invented the escape character, \.