Search variable for 1 or 2 caracters in Meta data field

Post Reply
kumpelj
Newbie
Posts: 10
Joined: Thu Jun 16, 2011 9:18 am

Search variable for 1 or 2 caracters in Meta data field

Post by kumpelj »

Hi,

I'm stuck; i need to sort on a meta data field value witch could contains 1 or more caracters: true or false

If the field contains: A, D, AB, CZ then it should be Yes otherwise it false

i cannot tackle it with [A-Z]{1,2}



Does anyone has a suggestion?

Thanks in advance!
loicaigon
Advanced member
Posts: 379
Joined: Wed Jul 10, 2013 10:22 am

Re: Search variable for 1 or 2 caracters in Meta data field

Post by loicaigon »

Hi,

A bit confused here.

If you need to filter non empty data whatever that is something like
.+
should do.

If you need up to 2 characters at max, then use
.{1,2}

If you need only to filter on specific values, choose
(A|D|AB|CZ)

HTH
Loic
Post Reply