rajagopalanr has asked for the wisdom of the Perl Monks concerning the following question:
I am writing a Perl script to search elasticsearch index. My text contains special characters \ and :. i try to filter them with \ and then search with the formatted string. But Perl again escapes them with one \ and post it them to elasticsearch. for eg if the text is C_:\_20Label_ and i escape them in code as C_\:\\_20Label, perl escapes again as C_\\:\\\\_20Label_. How to fix this issue.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Problem with escape sequence when working with elasticsearch
by Corion (Patriarch) on Jan 30, 2018 at 07:48 UTC |