LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Split the string using scan from string

How to split the following string using scan from string pallet.

Content inside the <> can be change.

 

<Name> Testing_8_16_2017_6:58PM </Name>

Never send a human to do a machine's job.
0 Kudos
Message 1 of 3
(2,996 Views)

Looks more like XML to me.  So my gut reaction would be to go look any XML parsers out there, including the one in the File IO palette.

 

But at the top of my head, you could go with <%[^>]> %[^_]_%<%m_%d_%Y_%H:%M%p>T



There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 2 of 3
(2,977 Views)

Not sure what you want to do, also not sure what part of your post is "Question" and what part is "Data".  One thing that is clear is that you want some flexibility in allowing differing Begin/End Tag pairs -- this you can accomplish by programmatically creating the Format String.  If I assume (as you've illustrated) that the Tag contents are set off from the Tag by spaces, the following will return "Testing_8_16_2017_6:58PM" from your example Tag:

Tag Parsing.png

 

 

 

 

 

 

Bob Schor

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