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!

Announcing Scheduled Export GA for Dashboard Studio

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

Extending Observability Content to Splunk Cloud

Watch Now!   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to leverage ...

More Control Over Your Monitoring Costs with Archived Metrics GA in US-AWS!

What if there was a way you could keep all the metrics data you need while saving on storage costs?This is now ...