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!

Community Content Calendar, November Edition

Welcome to the November edition of our Community Spotlight! Each month, we dive into the Splunk Community to ...

Stay Connected: Your Guide to November Tech Talks, Office Hours, and Webinars!

What are Community Office Hours? Community Office Hours is an interactive 60-minute Zoom series where ...

Index This | When is October more than just the tenth month?

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