LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

String Match Functions

Hi,

 

Just wondering if anyone knows why i don't get 20 in all of the string outputs from the match in my attached VI?

 

Cheers

 

Chris

0 Kudos
Message 1 of 2
(2,538 Views)

A period has a special meaning with Regex functions.  Read the detailed help and go into the more detailed links for Match Regular Expression.

 

You'll see that a period "Matches any single character except a newline character.  Within square brackets, . is literal."

 

What happens is that the . matches the 2 in the string.  There is nothing before it to return.

 

Try [.] in your search string.

0 Kudos
Message 2 of 2
(2,531 Views)