Forum

URL toolkit: matching with case insensitivity

David Oliver
4 February 2013, 17:54
Hi there,

How can I convert the file name extensions in the following line to be case insensitive?

Match ^/image\/(.+\.(jpg|gif|jpeg|png|bmp))$ Rewrite /extensions/jit_image_manipulation/lib/image.php?param=$1

I've tried (?i) at different places, and /i at the end, but Hiawatha won't restart.

I could do [jJ][pP][gG], but would rather avoid that if possible.
Hugo Leisink
4 February 2013, 20:02
Case insensitive matching is not possible yet, but I made it available for the next release.
David Oliver
4 February 2013, 20:45
Hugo, that's great. Many thanks.
Ali
6 February 2013, 20:56
Sory for hijacking the thread but I wonder if there is any chance for seeing Perl Compatible Regular Expression Library (PCRE) support on the next release?

For a reminder, my feature request was here [www.hiawatha-webserver.org]
Hugo Leisink
6 February 2013, 22:22
I must have missed that feature request, sorry. I'll take a look at PCRE, but not for the coming release.
Ali
7 February 2013, 21:52
Thanks Hugo, hope it doesn't require much effort.
Hugo Leisink
7 February 2013, 23:37
The beta of 8.8 can be found here. Case insensitive matching in the UrlToolkit can be done via MatchCI.
This topic has been closed.