ni.com is currently undergoing scheduled maintenance.

Some services may be unavailable at this time. Please contact us for help or try again later.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Match Pattern regular expression SELECT

Solved!
Go to solution

@GerdW wrote:

Hi Fredo,

 


@Fredo123Danzel wrote:

I would like to select:  Re= 45763.


What makes you think you need a RegEx here?

In case of "invalid" values after the keywords you still can use InRangeAndCoerce to check the parsed data…


 

It would seem important to wire a U16 constant to the default value inputs here, because that's probably the datatype we need later.

 

altenbach_0-1747665956024.png

  • If the number in the string is >65535, you'll get it coerced to 65535 (no error!)
  • If the number is negative, it will be coerced to zero (no error!)
  • if the string is not a number, you'll get an error or the error out.
Message 11 of 12
(568 Views)

@Yamaeda wrote:

Ah, so this was a typical case of OP posting "how" they want to solve something instead of "what" they want to achieve. I assumed it was some RegExp drill ...


The ol' XY problem 🙂

Message 12 of 12
(536 Views)