|
From: Kamil T. <kt...@em...> - 2003-02-18 21:41:01
|
On =DAt, 2003-02-18 at 21:27, Benoit DOLEZ wrote: > Hi, >=20 > What about create a new data type: 'REGEX', that can be used in > filter module? >=20 > Benoit >=20 Echelog types are designed primarily for serialization into messages. This doesn't seem to be the case. You can check the attribute type for varchar,... (by is_compatible(attr) for example) and perform any special operation you'd like to (like regmatch to a compiled regular expression). More generally, maybe attributes could be enhanced to handle regexp comparisons but it'd need a precisely defined behaviour for each type -- how would that look like? Kamil |