LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Seach specipic substring

Hi, I have a  string, which has 3-10 same substring , how can I get only one substring, that means, find the first substring matched the search criteria, then stop.

 

The string like:

0000 0000 0000 0000 0000 0000 0000 0135 3046 3030 3146 3404 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0001 3530 4630 3031 4634 0400 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0135 3046 3030 3146 3404 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0001 3530 4630 3031 4634 0400 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0135 3046 3030 3146 3404 0000 00

 

 

0 Kudos
Message 1 of 5
(2,103 Views)

split.pngJust this snippet will return the first full match of the string


"Should be" isn't "Is" -Jay
Message 2 of 5
(2,090 Views)

The string was updating dynamiclly, the substring is not fixed. 

0 Kudos
Message 3 of 5
(2,076 Views)
"String updating dynamically" means are you continuously updating the string? The sub string is not fixed but you need to search for it. I don't find the relation, What will be your search criteria then? Just try explaining your issue bit more.
-----

The best solution is the one you find it by yourself
0 Kudos
Message 4 of 5
(2,069 Views)

yes, the substring changed dynamically,but all follow the format 01xxx04;  I just want to find the first 01XXXX04, and ignore others.

0 Kudos
Message 5 of 5
(2,048 Views)