Forum Discussion
I use this site a lot to test and learn with. https://regex101.com/
\b(23691|26710)\b
This will match one or the other.
I don't think you can use a regular expression in a name map value however.
There are scripting options that will accept regular expressions or string matches using contains.
Otherwise you may be forced to map both values and then search for one and fail over to the other with an if block in your test. This will get cumbersome if you need to repeat it regularly in other code.
Thanks for the suggestions. I'll give them a try. I have used regular expressions in name mapping properties at least once before successfully. In that case it was a string property and I wanted to exclude a specific string. The expression I used was "[^CWndPickColor]". That worked like a champ.
Maybe it's not possible with integer properties?
I'll play around with it a little more and see what I can figure out.