Splunk Enterprise

Regex help- Why am I getting error "Regex: quantifier doesn't follow a repeatable item"?

SplunkEmp22
Engager

SplunkEmp22_0-1666251387951.png

Hi sorry for my direct question. This match it's in eval and i get the error "Regex: quantifier doesn't follow a repeatable item".

Do u know where it's the issue? Thank u

Labels (1)
Tags (1)
0 Karma

ITWhisperer
SplunkTrust
SplunkTrust

The first * is not required

0 Karma

SplunkEmp22
Engager

i want to match only all the words before and after User enabled, i tried to remove the first *, but it doesn't match anymore all the words before User

0 Karma

ITWhisperer
SplunkTrust
SplunkTrust

Match() is going to return true or false depending on whether the field matches the pattern - what is the pattern you are trying to find e.g. the field must contain "user enabled" with one or more words before it and zero or more words after it?

Have you considered using + rather than * so you get at least one of the preceding characters?

Also, try your regex in regex101.com as a great way to check you have got the expression right - it also will explain what your expression means.

0 Karma
Get Updates on the Splunk Community!

Index This | What is broken 80% of the time by February?

December 2025 Edition   Hayyy Splunk Education Enthusiasts and the Eternally Curious!    We’re back with this ...

Unlock Faster Time-to-Value on Edge and Ingest Processor with New SPL2 Pipeline ...

Hello Splunk Community,   We're thrilled to share an exciting update that will help you manage your data more ...

Splunk MCP & Agentic AI: Machine Data Without Limits

Discover how the Splunk Model Context Protocol (MCP) Server can revolutionize the way your organization uses ...