You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello,
while I am writing some custom rules I found a possible issue with strcontains function.
For instance I would like to match all the objects with exactly following string: 'Arial'
So I put this value into strcontains function as a regex match pattern. Unfortunately strcontains does not match any string that contains apostrophe character. I tried to escape it but without any luck. Once I get rid of the apostrophe character then it works fine.
The text was updated successfully, but these errors were encountered:
Finally, I was able to match 'Arial' word using this expression: \\\\u0027Arial\\\\u0027
I figured out that tostring function returns a json as a string and these special characters are replaced with unicode. So it can be used like that. Then strcontains works fine.
Hello,
while I am writing some custom rules I found a possible issue with strcontains function.
For instance I would like to match all the objects with exactly following string:
'Arial'
So I put this value into strcontains function as a regex match pattern. Unfortunately strcontains does not match any string that contains apostrophe character. I tried to escape it but without any luck. Once I get rid of the apostrophe character then it works fine.
The text was updated successfully, but these errors were encountered: