AnsweredAssumed Answered

Issue with RegEx value assigned to property

Question asked by Kevin Reese on Aug 31, 2016
Latest reply on Sep 20, 2016 by Salvador Camacho Reyes

When assigning a regular expression to a property , is there any special syntax that must be used?  I find that if I hardcode the regular expression in my javascript (see upper part of image), I have no issues and exec works fine.

 

If I create a property and paste the regular expression into the value box (see lower part of image), an error will indicate that the exec function cannot be used on the variable called regEx.

 

Thanks,

Kevin

Outcomes