Splunk Search

Can someone help me with building a regular expression for the following search?

rndp89
Explorer

I have following data.

<Abc><def>adfasdf1234567890dfa</def></Abc>
<Abc><def>adfasdf17890dfa</def></Abc>

Ineed a regular expression which matches " to ".

I have tried the following regex but it matches to

<[^>]*>.*?\d{9,}.*?<[^>]*>
Tags (2)
0 Karma

kthammireddygar
Path Finder

Regex to match full string. Please try this

Regex: <[^>]*><[^>]*>.*?\d*.*?<\/[^>]*><\/[^>]*>

0 Karma

brian_rampley
Path Finder

Can you provide a few more details. It's not clear what you want to match. Your regex seems to match everything from the first two open tags to the first close tag of your XML.

0 Karma
Get Updates on the Splunk Community!

Webinar Recap | Revolutionizing IT Operations: The Transformative Power of AI and ML ...

The Transformative Power of AI and ML in Enhancing Observability   In the realm of IT operations, the ...

.conf24 | Registration Open!

Hello, hello! I come bearing good news: Registration for .conf24 is now open!   conf is Splunk’s rad annual ...

ICYMI - Check out the latest releases of Splunk Edge Processor

Splunk is pleased to announce the latest enhancements to Splunk Edge Processor.  HEC Receiver authorization ...