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!

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

Introducing Value Insights (Beta): Understand the Business Impact your organization ...

Real progress on your strategic priorities starts with knowing the business outcomes your teams are delivering ...