En un mensaje anterior, Samuel J. Sutjiono escribió:
> This expression matches the word socks or shoes or nike in product category
> where productdescr ~* '(socks|shoes|nike)'
>
> Does anybody know what the expression should be if I want to do 'and' of those key words instead of 'or' ?
You have to use something like:
'(socks.*shoes.*nike)|(socks.*nike.*shoes)|...'
where ... is every other possible combination. Not pretty, but that's
a limitation of finite automata (or regular expressions, which are
the same).
Regards.
Fernando P. Schapachnik
Gerente de tecnología de red
y sistemas de información
VIA NET.WORKS ARGENTINA S.A.
fschapachnik@vianetworks.com.ar
Tel.: (54-11) 4323-3381