Splunk Search

regex help sliding pattern

marceloFinkiels
New Member

Given this input: 123456789
i need a regex that will match and produce: 123, 234, 345, 456, 567, 678, 789.

Thanks in advance!!
Marcelo

Tags (1)
0 Karma

marceloFinkiels
New Member

Received answer on another forum. FYI ... (written using C# syntax)
Regex regexObj = new Regex(@"(?=(\d{3}))");

HTH,
Marcelo Finkielsztein

0 Karma
Get Updates on the Splunk Community!

Your Guide to SPL2 at .conf24!

So, you’re headed to .conf24? You’re in for a good time. Las Vegas weather is just *chef’s kiss* beautiful in ...

Get ready to show some Splunk Certification swagger at .conf24!

Dive into the deep end of data by earning a Splunk Certification at .conf24. We're enticing you again this ...

Built-in Service Level Objectives Management to Bridge the Gap Between Service & ...

Now On-Demand Join us to learn more about how you can leverage Service Level Objectives (SLOs) and the new ...