LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

2B or not 2B? A regular expression problem

I am seeking to understand my error in the attached VI.  The LV help states the following regarding usage examples:

 

A sequence of one or more digits [0-9]+
   
   
One or more characters other than digits [~0-9]+

 

So why does my code return the exact same result for both the positive and negative cases?

 

Thanks.

0 Kudos
Message 1 of 4
(2,654 Views)

Try changing your "~" to a "^".

 

Tilda ? Acent Grave?

 

I seem to remeber reading there was a typo in the help somewhere. ( tend to read the help file "with a jondous eye" Also for Hamlet. Smiley Tongue )

 

Ben

Message Edited by Ben on 04-24-2009 01:31 PM
Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
Message 2 of 4
(2,649 Views)

Thank you, Ben.

 

I would call this a LVH (LabVIEW Help) bug.

0 Kudos
Message 3 of 4
(2,643 Views)

kc64 wrote:

The LV help states the following regarding usage examples:

 


One or more characters other than digits[~0-9]+

 Where does it say this in the LabVIEW Help? My LabVIEW Help says this:

One or more characters other than digits    [^0-9]+

 

EDIT: It appears that the the LabVIEW 8.5 Help has the line as kc64 noted, while the LV 8.6 Help has the line I mentioned.

 

Message Edited by smercurio_fc on 04-24-2009 01:57 PM
Message 4 of 4
(2,633 Views)