Jump to content

Please help me create a regex


ivytony

Recommended Posts

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

Link to comment
https://forums.phpfreaks.com/topic/123626-please-help-me-create-a-regex/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.