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!

Built-in Service Level Objectives Management to Bridge the Gap Between Service & ...

Wednesday, May 29, 2024  |  11AM PST / 2PM ESTRegister now and join us to learn more about how you can ...

Get Your Exclusive Splunk Certified Cybersecurity Defense Engineer at Splunk .conf24 ...

We’re excited to announce a new Splunk certification exam being released at .conf24! If you’re headed to Vegas ...

Share Your Ideas & Meet the Lantern team at .Conf! Plus All of This Month’s New ...

Splunk Lantern is Splunk’s customer success center that provides advice from Splunk experts on valuable data ...