I am trying to figure out how to pull fields to show the exact count of numbers and letters in a result. Like, if I have the result 11tt3yyy1, I want the fields to show me that there is 4 numbers and 5 letters. Is there a way to do this? I have tried everything I can think of.
| makeresults
| eval _raw="11tt3yyy1"
| rex max_match=0 "(?<digit>[[:digit:]])|(?<letter>[[:alpha:]])"
| eval digits=mvcount(digit)
| eval letters=mvcount(letter)
| makeresults
| eval _raw="11tt3yyy1"
| rex max_match=0 "(?<digit>[[:digit:]])|(?<letter>[[:alpha:]])"
| eval digits=mvcount(digit)
| eval letters=mvcount(letter)
Perfect! Thank you very much!