NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Find & Replace with regular expressions

Is there a way in TestStand for Find & Replace with regular expressions, keeping the regular expression content in replacements?

For example, I search for "Locals.MyNum = .*"

I find Locals.MyNum = 12, Locals.MyNum = 5411, Locals.MyNum = 7777, etc.

And I wish to replace by something like "Locals.MyNum = .* + 25" for getting:

MyNum = 12 + 25, Locals.MyNum = 5411 + 25, Locals.MyNum = 7777 + 25, etc

Is it possible?

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

For the examples you have given you could go for replacing "Locals.MyNum =" with "Locals.MyNum = 25 + "

0 Kudos
Message 2 of 4
(2,909 Views)

Yes, but that's only an example; what I need is not as simple. Let's say I wish to add things to get something like: Locals.MyNum = 12, (Locals.MyNum > 100)?(Locals.MyNum = Locals.MyNum / 2):(Locals.MyNum)

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

Did you ever figure this out?

0 Kudos
Message 4 of 4
(2,031 Views)