ivytony Posted September 10, 2008 Share Posted September 10, 2008 I am trying to create sitemap using google sitemap generator. I want to filter out urls that contain 'admincp.php'. Below is an example in the config.xml file of the generator: <!-- Exclude URLs within UNIX-style hidden files or directories --> <filter action="drop" type="regexp" pattern="/\.[^/]*" /> I wonder how to write a regex to exclude urls containing 'admincp'. Could someone here help me pls? appreciate it Quote Link to comment Share on other sites More sharing options...
effigy Posted September 10, 2008 Share Posted September 10, 2008 What's the regex engine? You can try %https?://\S*admincp\.php%. Quote Link to comment Share on other sites More sharing options...
ivytony Posted September 10, 2008 Author Share Posted September 10, 2008 I don't really know which regex engine. I only know that the google sitemap generator is written in Python. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.