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!

Introducing the 2024 SplunkTrust!

Hello, Splunk Community! We are beyond thrilled to announce our newest group of SplunkTrust members!  The ...

Introducing the 2024 Splunk MVPs!

We are excited to announce the 2024 cohort of the Splunk MVP program. Splunk MVPs are passionate members of ...

Splunk Custom Visualizations App End of Life

The Splunk Custom Visualizations apps End of Life for SimpleXML will reach end of support on Dec 21, 2024, ...