Splunk Search

How to get values that has both number and letter in regex?

vinoth12
New Member

I want to get the values which have both number and letter (length should be 5 to 😎
I tried the following regex value="^[a-z0-9.]{5,8}$"..

It only catches the name followed by a number.
eg:
apple12

But I want to get the following values as well.
eg :a1p32p6h

Can someone please help me to get to the output?

Tags (3)
0 Karma

somesoni2
Revered Legend

Your regex seems to be working fine for me (See this runanywhere sample script). Could you post some actual sample values which you expect to show up but are getting filtered?

| gentimes start=-1 | eval value="asd23 as23sdf as2134 234f23 242424 ffsdf " | table value| makemv value| mvexpand value | regex value="^([A-z0-9.]{5,8})$"
0 Karma
Get Updates on the Splunk Community!

Introducing the 2024 SplunkTrust!

Hello, Splunk Community! We are beyond thrilled to announce our newest group of SplunkTrust members!  The ...

Introducing the 2024 Splunk MVPs!

We are excited to announce the 2024 cohort of the Splunk MVP program. Splunk MVPs are passionate members of ...

Splunk Custom Visualizations App End of Life

The Splunk Custom Visualizations apps End of Life for SimpleXML will reach end of support on Dec 21, 2024, ...