Splunk Search

Regex pattern

irvindominguez9
Observer

Can you help me with this regex pattern? I only need the numbers.

simNumber\"😕"2201240132708969900\"

I am using "simNumber\\\":\\\"(?<sim>[^\\]*)"

Labels (1)
0 Karma

to4kawa
Ultra Champion

| rex "simNumber\D+(?<sim>\d+)"
how about this?

 

| makeresults
| eval _raw="\"simNumber\\\":\\\"2201240132708969900\\\""
| rex "simNumber\D+(?<sim>\d+)"
| rex mode=sed "s/\\\//g"
| eval _raw="{"._raw."}"
| spath

just fun.

0 Karma
Get Updates on the Splunk Community!

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

Splunk Mobile: Your Brand-New Home Screen

Meet Your New Mobile Hub  Hello Splunk Community!  Staying connected to your data—no matter where you are—is ...