LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

match pattern

I use the "Match Pattern" function to extract a number (the data is temperature), with the following expression: "[0-9]*[\. 0-9][0-9]*" It works, but the minus sign is lost for negative temperatures. How can I solve it?

Thanks
0 Kudos
Message 1 of 2
(2,213 Views)

@Gabrielet wrote:
I use the "Match Pattern" function to extract a number (the data is temperature), with the following expression: "[0-9]*[\. 0-9][0-9]*" It works, but the minus sign is lost for negative temperatures. How can I solve it?

Thanks





If you use the pattern "[0-9\-][0-9\.][0-9]*[\.0-9][0-9]*" it should work.

Best of luck

Tim Norris
"...and all this science I don't understand
it's just my job five days a week"


Using 6i, 7.0 & 7.1 on Win'98, 2K & XP
Message 2 of 2
(2,209 Views)