NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Question TestStand RegEx Processing

Solved!
Go to solution

Hi there,

 

maybe someone can point me to the right direction:

 

I am using the MatchPattern function to scan retrieve a parts of it

 

MatchPattern(Parameters.SomeValue "SomePattern", True, Locals.SomeNumbers)

 

My strings start look like fa_xxxxxxxx where xxxxxxxx is a 6.8digit number.

 

I usually use RegEx101.com to test my RegExs. There 

 

MatchPattern(Parameters.SomeValue "([0-9]{6,8})", True, Locals.SomeNumbers)

 

returns what I expect.

 

Oli_Wachno_0-1749636695086.png

whereas TestStand returns an empty array for Locals.SomeNumbers

 

Am I doing something wrong or is this a bug?

 

TS2023Q4 64Bit

 

 

 

 

 

0 Kudos
Message 1 of 3
(251 Views)
Solution
Accepted by topic author Oli_Wachno

There seem to be a KB on the cases it may not find a match,

TestStand Regular Expression Functions Not Finding Match - NI

 

Match a Sub-string with a Regular Expression in TestStand - NI

Santhosh
Soliton Technologies

New to the forum? Please read community guidelines and how to ask smart questions

Only two ways to appreciate someone who spent their free time to reply/answer your question - give them Kudos or mark their reply as the answer/solution.

Finding it hard to source NI hardware? Try NI Trading Post
Message 2 of 3
(240 Views)

Thanks for pointing out these KBs, Santhosh!

 

Nevertheless, I guess I'll report a bug since MatchPattern definitely misses a match...

0 Kudos
Message 3 of 3
(212 Views)