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!

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 ...

Combine Multiline Logs into a Single Event with SOCK: a Step-by-Step Guide for ...

Combine multiline logs into a single event with SOCK - a step-by-step guide for newbies Olga Malita The ...