From: Michiel Meeuwissen:
>I would do it with:
><mm:constraint field="groups.name" operator="LIKE" value="a%" />

This works fine in this specific case indeed. However, I would also like to 
list everything that does not start with a character in the range aA-zZ. To get 
all the group.name's that do not start with an alphabet character. 

NOT MATCHES '[aA-zZ]*'

The only way I can think of now for doing this with a constraint taglib is by 
adding 26 of them, one for every character in the alphabet. Not very efficient 
probably.

The only working solution I currently have for this is by adding the following 
to the constraint. Also not a very elegant solution:

substring(groups.name from 1 for 1) not between 'a' and 'z' AND 
substring(groups.name from 1 for 1) not between 'A' and 'Z'

In other words it would indeed be nice to be able to use square brackets in the 
constraints.

Wim


<<winmail.dat>>

_______________________________________________
Developers mailing list
[email protected]
http://lists.mmbase.org/mailman/listinfo/developers

Reply via email to