We have a requirement where we will insert the maping for say sling:match= /testmapping$ and sling:redirect=/content/site1/page1.html.
Now we want a sling:match should be case insensitive, means if incoming request is http://<host>:<port>/testmapping.html it will redirect to http://<host>:<port>/content/site1/page1.html but it should also redirect if incoming request is http://<host>:<port>/TestMapping.html even though the sling:match I have confgured only for /testmapping$
Is there any way for this so that user dont have to put all combination of uppercase/lowercase and only one can handle any request either coming for uppercase or lowercase?
Try with "(?i)[^/]+/content/site1/page1.html"
This should match page1, Page1, PAGE1 etc..