Splunk Search

How can I extract with Regex?

numeroinconnu12
Path Finder

Hello, 

Hope you are well

I want to etract only TP58304 on this line (8)TP58304 (5)endra(3)ttx(5)local(0)

How can i do please? 

Thanks

Labels (3)
Tags (1)
0 Karma

isoutamo
SplunkTrust
SplunkTrust

Hi

this is one option

| rex "\(\d\)(?<name>[^\(]+)\(\d\)"

r. Ismo 

0 Karma
Get Updates on the Splunk Community!

Enter the Agentic Era with Splunk AI Assistant for SPL 1.4

  &#x1f680; Your data just got a serious AI upgrade — are you ready? Say hello to the Agentic Era with the ...

Feel the Splunk Love: Real Stories from Real Customers

Hello Splunk Community,    What’s the best part of hearing how our customers use Splunk? Easy: the positive ...

Data Management Digest – November 2025

  Welcome to the inaugural edition of Data Management Digest! As your trusted partner in data innovation, the ...