Splunk Search

Backslashes being doubled

Ayn
Legend

Whenever a backslash is used in questions/answers/comments on splunk-base, another backslash will be added.

For instance, the following regex snippet is entered with single backslashes only, but splunk-base adds another backslash to each.

rex "(?<foo>\d+)\S+"

In regular text this doesn't seem to happen: rex "(?\d+)\S+"

But in text formatted using backticks it does: rex "(?<foo>\d+)\S+"

This is causing confusion for people sharing regular expressions etc. Are splunk-base administrators aware of this issue and working on a way to resolve it?

1 Solution

oprokhorenko_sp
Splunk Employee
Splunk Employee

Thank you for heads up. This problem has been fixed on 19 Aug '11.

Please do not hesitate to contact us if you have any problems or suggestions.

View solution in original post

0 Karma

oprokhorenko_sp
Splunk Employee
Splunk Employee

Thank you for heads up. This problem has been fixed on 19 Aug '11.

Please do not hesitate to contact us if you have any problems or suggestions.

0 Karma

gkanapathy
Splunk Employee
Splunk Employee

Even worse, the "preview" while you are editing it shows it correctly, i.e., without the extra characters.

Get Updates on the Splunk Community!

Stay Connected: Your Guide to May Tech Talks, Office Hours, and Webinars!

Take a look below to explore our upcoming Community Office Hours, Tech Talks, and Webinars this month. This ...

They're back! Join the SplunkTrust and MVP at .conf24

With our highly anticipated annual conference, .conf, comes the fez-wearers you can trust! The SplunkTrust, as ...

Enterprise Security Content Update (ESCU) | New Releases

Last month, the Splunk Threat Research Team had two releases of new security content via the Enterprise ...