I do not have enough knowledge about regular expressions and am trying to solve the following problem.
I want to write an expression to match only HTML files (* .html) in the root path of the web application. For instance.
The following should match:
/myfile.html
Below should not match (contains a subdirectory):
/home/myfile.html
My current expression is:
^ / (. *. HTML) $
is not satisfactory because it will correspond to files in subdirectories.
Can anyone solve this problem for me?
Thank,
Andrew
source
share