Hi,
I need to split a string for the double quote character " , but I can’t find a solution that works.
variable.split(“”“”) doesn’t work.
Thanks
Hi,
I need to split a string for the double quote character " , but I can’t find a solution that works.
variable.split(“”“”) doesn’t work.
Thanks
Hi,
If you use VB, the following will work.
variable.split(""""c)
or
variable.split({""""c})
Regards,
@dterlizzi
Assign: YourArray = YourString.Split(“”""c)
For example, if you have the string: This is "a sample" string
, after splitting, YourArray
will be {"This is ", "a sample", " string"}
.
I just discovered that the quotes are: “ and ” different from ". But I don’t know how to insert them into the split.
Thank you
Hi,
Can you share exact character which you want to split? As this forum autoamtically convert some double quote to other quote, try to use </>
menu or share text file?
Regards,
“ ”
Open double quote (“): U+201C
Close double quote (”): U+201D
You can represent them using their Unicode values as follows:
Open double quote (“): \u201C
Close double quote (”): \u201D
Thanks
HI,
How about the following expression?
variable.split({""""c,ChrW(&H201C),ChrW(&H201D)})
Regards,
Thanks Yoichi it works!
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.