LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

how to pick number in string

Hi, all
 
Does have some function can pick number from string.
 
For example: I have a string like this " **** ** 123 **** ** 45 *** ** 678 *** **", I want to extract the first number (123) from the string.
 
is there any functions in labview to result ?
 
Many thanks
0 Kudos
Message 1 of 3
(2,179 Views)
Use match pattern with [0-9]+ as regular expression. It is in the string palette.
 
[0-9]+ matches "A sequence of one or more digits". Check the online help for more details.

(see attached example (LabVIEW 7.0)).

Message Edited by altenbach on 10-12-2005 09:11 AM

Message 2 of 3
(2,178 Views)
Thanks a lot!
 
I got
0 Kudos
Message 3 of 3
(2,163 Views)