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 Splunk Community Dashboard Challenge!

Welcome to Splunk Community Dashboard Challenge! This is your chance to showcase your skills in creating ...

Get the T-shirt to Prove You Survived Splunk University Bootcamp

As if Splunk University, in Las Vegas, in-person, with three days of bootcamps and labs weren’t enough, now ...

Wondering How to Build Resiliency in the Cloud?

IT leaders are choosing Splunk Cloud as an ideal cloud transformation platform to drive business resilience,  ...