Splunk Search

What is the best practice to paste regular expressions on Splunk Answers without the site removing special characters?

satishsdange
Builder

Could someone please let me know what is the best practice to paste regex in the response to any question? Answers portal automatically removes special characters such as backslash from response.

1 Solution

ramdaspr
Contributor

Well you can use the Code Sample button to write out a code block (5th from the left)

^[ \t]+|[ \t]+$

or surround your code with ""
^[ \t]+|[ \t]+$`

View solution in original post

ramdaspr
Contributor

Well you can use the Code Sample button to write out a code block (5th from the left)

^[ \t]+|[ \t]+$

or surround your code with ""
^[ \t]+|[ \t]+$`

Get Updates on the Splunk Community!

Join Us for Splunk University and Get Your Bootcamp Game On!

If you know, you know! Splunk University is the vibe this summer so register today for bootcamps galore ...

.conf24 | Learning Tracks for Security, Observability, Platform, and Developers!

.conf24 is taking place at The Venetian in Las Vegas from June 11 - 14. Continue reading to learn about the ...

Announcing Scheduled Export GA for Dashboard Studio

We're excited to announce the general availability of Scheduled Export for Dashboard Studio. Starting in ...