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!

See your relevant APM services, dashboards, and alerts in one place with the updated ...

As a Splunk Observability user, you have a lot of data you have to manage, prioritize, and troubleshoot on a ...

Index This | What goes away as soon as you talk about it?

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

What's New in Splunk Observability Cloud and Splunk AppDynamics - May 2025

This month, we’re delivering several new innovations in Splunk Observability Cloud and Splunk AppDynamics ...