AnsweredAssumed Answered

How To Precede "\" before Special Characters + - && || ! ( ) { } [ ] ^ " ~ * ? : /

Question asked by akash.raj on Jun 15, 2017
Latest reply on Jun 20, 2017 by akash.raj

I have a query Regarding : How to Use Regular Expression to precede any Special Character with “\” eg “(“ with ”\(“. I need to search name using solr, because solr is not accepting special character I need to append  “\”  before every  special character Like + - && || ! ( ) { } [ ] ^ " ~ * ? : / . I am using Evaluate Regular Expression assertion.  

Eg. Akash (Raj) to Akash\\(Raj\) and 

\(1\+1\)\:2

Outcomes