2 Replies Latest reply on May 23, 2016 2:27 PM by daveb1

    How do you escape a backslash in the IsRegexMatch function in HEAT

    elysey Apprentice

      I have the following IsRegexFunction below


      IsRegexMatch(description,  /[^a-zA-Z0-9\-._()&@{}#',: ]+/g)


      So the point of this regex is to list out the characters allowed in a field.  So if the regex match is true then the characters entered are all valid.  Now, I want to add a "/" as a supported character, and the regex should be as formatted below to accommodate for it.  This is applied as a visibility rule in my request offering.


      IsRegexMatch(description,  /[^a-zA-Z0-9\-._()&@{}#',:\/ ]+/g)

      NOTE: The "\" is an escape as per regex syntax


      However when I add it to the syntax, I get the error below



      I'm using regex101 to test out my syntax and the syntax below should work but for some reason it errors in HEAT.  Any ideas?