How To Filter Array List

NaIs0335

New member
Hi, I have a problem with Array Filtering. I want to extract only the numbers 0-9 and two letters M and H from this Array List to an another Array List. How to do that?

I don't know how to use Array Filter. Please help me...



IMG_20240506_101749.jpg
 

MacroDroidDev

Administrator
Staff member
Use the Array Manipulation action to filter and try this regex [0-9MH]+

I'm not a regex expert by an means but you can use chat gpt (or other AI) to create a suitable regex for example:

create me a java regex to match only the numbers 0-9 and the uppercase letters M and H
 

NaIs0335

New member
Use the Array Manipulation action to filter and try this regex [0-9MH]+

I'm not a regex expert by an means but you can use chat gpt (or other AI) to create a suitable regex for example:

create me a java regex to match only the numbers 0-9 and the uppercase letters M and H

Thank you so much sir, it's working. 😍
 
Top