Page 1 of 1

Search variable for 1 or 2 caracters in Meta data field

Posted: Mon May 02, 2016 3:36 pm
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!

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

Posted: Mon May 02, 2016 3:42 pm
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