w3hello.com logo
Home PHP C# C++ Android Java Javascript Python IOS SQL HTML videos Categories
exclude a folder and match all .html pattern files in a root folder using regex

Try /((?!images)[0-9a-zA-Z])+/[^_]*[^d]+.html

Matches:

/magazines/sample.html 
/test/index.html
/test/folder/newstyle.html
/test/format_ss.html

Does not match:

/test/format_ss1.html
/test/folder/newstyle_1.html
/images/two.html
/images/1.html
/test/folder/newstyle1.html
/test/folder/newstyle_12.html

is this acceptable?





© Copyright 2018 w3hello.com Publishing Limited. All rights reserved.