Regex Flags in Redirection
-
Hi, I’m hoping to do a regex that ignores case but Redirection doesn’t seem to allow for regex flags. For example, I want to redirect .pdf files that contain the string “bod” in it. I’ve gotten it to work on sample file names with a lowercase match when the redirect is set to:
/(.*bod?.*\.pdf)
But when I try to specify the regex flag to ignore case, which comes after the closing “/” in the regex, the match doesn’t seem to take:
/(/*bod?.*\.pdf/i)
A working example can be found here: https://regexr.com/3djf9
Is there a way to specify regex flags in Redirection when using Regular Expressions in the URL?
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Regex Flags in Redirection’ is closed to new replies.