RegEx Question still...

Is there any reason the below isn’t working? I am attempting to data extract an area which should return a string that I know will be empty. I am trying to use the conditional operator to compare that that area’s extracted string to a regex. I expect it to return true. However, it is not. (the location in the javascript was simply there because of some testing I removed.)

try regex.test(item)

I had used this previously to test to make sure that my logic was right (which it was), however it still doesn’t answer why the expression is not testing true. It tests true in the javascript expression, but not when I use the condition to test the left (position) contains the regular expression (right operand).

Is my logic flawed? Or is this a feature that isn’t offered.

This was my solution