10-07-2016 09:36 AM
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
10-07-2016 09:44 AM - edited 10-07-2016 09:46 AM
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.