- Mark as New
- Bookmark Message
- Subscribe to Message
- Mute Message
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
jay
Engager
07-22-2020
11:04 PM
for example : C:\user\process --> C:\\user\\process
1 Solution
- Mark as New
- Bookmark Message
- Subscribe to Message
- Mute Message
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

manan_amin
Explorer
07-22-2020
11:11 PM
In Eval, We can use string format function (replace) to replace "\" by two "\\".
Here, We need to escape "\" two times,
One of the way to replace it,
props.conf
EVAL-new_path = replace(path ,"(\\\\)","\\\\\1")
in Search Query:
| eval new_path = replace(path ,"(\\\\)","\\\\\1")
- Mark as New
- Bookmark Message
- Subscribe to Message
- Mute Message
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

manan_amin
Explorer
07-22-2020
11:11 PM
In Eval, We can use string format function (replace) to replace "\" by two "\\".
Here, We need to escape "\" two times,
One of the way to replace it,
props.conf
EVAL-new_path = replace(path ,"(\\\\)","\\\\\1")
in Search Query:
| eval new_path = replace(path ,"(\\\\)","\\\\\1")
- Mark as New
- Bookmark Message
- Subscribe to Message
- Mute Message
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
highsplunker
Contributor
10-17-2024
05:47 AM
why 4 backslashes?
