06-11-2025 05:20 AM
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.
whereas TestStand returns an empty array for Locals.SomeNumbers
Am I doing something wrong or is this a bug?
TS2023Q4 64Bit
Solved! Go to Solution.
06-11-2025 06:33 AM
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
06-12-2025 08:56 AM
Thanks for pointing out these KBs, Santhosh!
Nevertheless, I guess I'll report a bug since MatchPattern definitely misses a match...