XML Sitemaps Generator

Author Topic: Removing URL's with Regex  (Read 6243 times)

sharingsunshine

  • Registered Customer
  • Approved member
  • *
  • Posts: 7
Removing URL's with Regex
« on: July 02, 2014, 01:29:55 AM »
I use regex buddy and I can pick many versions of regex to test with.  So, what version of regex is being used in this program?

I normally use the javascript version but it doesn't seem to be working with the sitemap generator.  Here are the links I want to exclude

[external links are visible to admins only]

and the regex I used was /content/([0-9]{3})-([0-9]{6})

[external links are visible to admins only]

and the regex I used was /content/([0-9]{3})-news([0-9]{6})

both regexes were in the exclude url section.

Please tell me what I am doing wrong.  Thanks,

Randal

XML-Sitemaps Support

  • Administrator
  • Hero Member
  • *****
  • Posts: 10621
Re: Removing URL's with Regex
« Reply #1 on: July 02, 2014, 01:30:49 PM »
Hello,

you also need to appen .* in the setting.
Oleg Ignatiuk
www.xml-sitemaps.com
Send me a Private Message

For maximum exposure and traffic for your web site check out our additional SEO Services.

sharingsunshine

  • Registered Customer
  • Approved member
  • *
  • Posts: 7
Re: Removing URL's with Regex
« Reply #2 on: July 02, 2014, 04:19:36 PM »
I guess I am not following what you mean.  I changed the entries to

.*/content/([0-9]{3})-([0-9]{6})
.*/content/([0-9]{3})-news([0-9]{6}) but they are still being included.

Kindly, show me the complete url if you don't mind.

Thanks,

XML-Sitemaps Support

  • Administrator
  • Hero Member
  • *****
  • Posts: 10621
Re: Removing URL's with Regex
« Reply #3 on: July 03, 2014, 05:21:32 PM »
Please try this:
content/([0-9]{3})-([0-9]{6}).*
content/([0-9]{3})-news([0-9]{6}
Oleg Ignatiuk
www.xml-sitemaps.com
Send me a Private Message

For maximum exposure and traffic for your web site check out our additional SEO Services.

sharingsunshine

  • Registered Customer
  • Approved member
  • *
  • Posts: 7
Re: Removing URL's with Regex
« Reply #4 on: July 07, 2014, 08:06:28 PM »
I tried your suggestion but i still get the same urls included.  Please help.

XML-Sitemaps Support

  • Administrator
  • Hero Member
  • *****
  • Posts: 10621
Re: Removing URL's with Regex
« Reply #5 on: July 08, 2014, 04:24:43 AM »
Hello,

I've defined it like:
content/\d\d\d-\d\d\d\d\d\d
content/\d\d\d-news\d\d\d\d\d\d

please check now.
Oleg Ignatiuk
www.xml-sitemaps.com
Send me a Private Message

For maximum exposure and traffic for your web site check out our additional SEO Services.

sharingsunshine

  • Registered Customer
  • Approved member
  • *
  • Posts: 7
Re: Removing URL's with Regex
« Reply #6 on: July 09, 2014, 12:03:52 PM »
That did it.  Thanks for the great service.

 

SMF 2.0.12 | SMF © 2014, Simple Machines
XHTML RSS WAP2