LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Is there any string tokenizer that handles quotes?

Solved!
Go to solution

I need a string tokenizer that handles quotes in LabVIEW.

 

Assume that there is a string, abc bcc="xxx yyy"

 

After tokenizing, token 1 is abc, and token 2 is bcc="xxx yyy".

 

The tokenizer should ignore white characters between quotes.

 

I use LabVIEW 2009 SP1.

 

Does anyone have a tokenizer VI?

 

 

0 Kudos
Message 1 of 3
(2,963 Views)
Solution
Accepted by topic author iCat

HI

There is a VI available for String Tokenizer In LabVIEW 2010

 

You can try this.

 

 

 

Regards

Prabhakant

Regards
Prabhakant Patil
0 Kudos
Message 2 of 3
(2,945 Views)

I expect that I can make something cleaner if I had a better understanding of your expected input, but this works with what I know.

 

Example_VI.png

 

The bottom loop looks for start & end quotation marks and pastes the elements together that the first loop shouldn't have (based on your requirement) taken apart.

Jim
You're entirely bonkers. But I'll tell you a secret. All the best people are. ~ Alice
For he does not know what will happen; So who can tell him when it will occur? Eccl. 8:7

0 Kudos
Message 3 of 3
(2,918 Views)