XML Sitemaps Generator

Author Topic: How to parse only numbering URLs  (Read 3504 times)

gyijiro

  • Registered Customer
  • Approved member
  • *
  • Posts: 3
How to parse only numbering URLs
« on: January 19, 2016, 09:21:56 AM »
Hello.
I am using dynamic php site.

I want to parse only URLs end with number like...

1) /7666543 
2) /movie/54333

How can I make this work?

XML-Sitemaps Support

  • Administrator
  • Hero Member
  • *****
  • Posts: 10625
Re: How to parse only numbering URLs
« Reply #1 on: January 19, 2016, 11:20:31 AM »
Hello,

you can use this:
/\d\d*$
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.

gyijiro

  • Registered Customer
  • Approved member
  • *
  • Posts: 3
Re: How to parse only numbering URLs
« Reply #2 on: January 19, 2016, 01:36:06 PM »
Thabks by the way can u let me know
What is d? and other wildcards

XML-Sitemaps Support

  • Administrator
  • Hero Member
  • *****
  • Posts: 10625
Re: How to parse only numbering URLs
« Reply #3 on: January 19, 2016, 04:04:43 PM »
"\d" means the digit (0-9) and \d* any number of digits.
https://en.wikipedia.org/wiki/Perl_Compatible_Regular_Expressions
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.

 

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