Hi Isomorphic,
I saw in the 12.1p Changelogs support for the new "regexp" and "iregexp" operators.
Also I saw that when you replace the search operator for countryName with iregexp in this sample, the GUI shows "/re" as operator icon, which is great.
I was wondering if you could add a sample using this new function to the 12.1p+ showcases for SmartClient and SmartGWT.
It is not clear to me how I could show the RegExp operator in the rightclick menu, and no entry is selected in that menu, when I start the sample with "iregexp".
Also, I think I found an issue with filtering and case insensitivity here.
It does not matter if you use iregexp or regexp, in order to find countries that contain a "T" and end with an "e" - you will always have to use RegExp T.*e$
t.*e$ does not work, also not with iregexp. In fact, the results don't match for T.*e$ and t.*e$ when using iregexp, which is unexpected.
This could of course be the fault of the underlying DB engine, so I was wondering what SQL functions you are using per DBMS.
HSQLDB's REGEXP_MATCHES for example (used to power the showcase I think) seems to support Java flags like e.g. (?i).
PostgreSQL has ~ and ~* for case insensitive.
Best regards
Blama
I saw in the 12.1p Changelogs support for the new "regexp" and "iregexp" operators.
Also I saw that when you replace the search operator for countryName with iregexp in this sample, the GUI shows "/re" as operator icon, which is great.
I was wondering if you could add a sample using this new function to the 12.1p+ showcases for SmartClient and SmartGWT.
It is not clear to me how I could show the RegExp operator in the rightclick menu, and no entry is selected in that menu, when I start the sample with "iregexp".
Also, I think I found an issue with filtering and case insensitivity here.
It does not matter if you use iregexp or regexp, in order to find countries that contain a "T" and end with an "e" - you will always have to use RegExp T.*e$
t.*e$ does not work, also not with iregexp. In fact, the results don't match for T.*e$ and t.*e$ when using iregexp, which is unexpected.
This could of course be the fault of the underlying DB engine, so I was wondering what SQL functions you are using per DBMS.
HSQLDB's REGEXP_MATCHES for example (used to power the showcase I think) seems to support Java flags like e.g. (?i).
PostgreSQL has ~ and ~* for case insensitive.
Best regards
Blama
Comment