I’m trying to write a regular expression to use to validate a url path. We orginally had the pattern: [^#\?:]+ which would grab everything up until the first ?, : or # from the path.
We now want to also exclude the string ‘index.cfm’.
I can’t work out how to include this though. I’ve had a look at lookarounds but I can’t seem to work out how to use it in conjunction with the pattern we already have.
EDIT: Here’s an edited solution according to your comment.
Here’s a demo using the site you mentioned: http://regexr.com?31rk9.