vb.net - How to get text inside the quotation mark from string? -


i have string this:

+cops:0,0,"xl",2 or +csq: "15",99

how can "xl" or "15" string.

on second one, i've tried using replace , remove +csq: , ,99 can't on first one.

for first string use string.split split on commas string.trim remove quotes:

dim line = "+cops:0,0,""xl"",2" ' split fields on comma dim fields = line.split(",") ' quote literal dim quote = """"c ' use trim remove quotes dim value = fields(2).trim(quote) 

Comments

Popular posts from this blog

java - WrongTypeOfReturnValue exception thrown when unit testing using mockito -

php - Magento - Deleted Base url key -

android - How to disable Button if EditText is empty ? -