Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7012269
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T22:14:02+00:00 2026-05-27T22:14:02+00:00

Need a regex to get numbers of pages in the thread: example url :

  • 0

Need a regex to get numbers of pages in the thread:

example url : traidnt.net/vb/f25

i tried this :

'~<td class="vbmenu_control" style="font-weight:normal">.*([2-9]{1}|[0-9]{2,}).*</td>~isU' 

but it wont work.

Thanking you

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T22:14:03+00:00Added an answer on May 27, 2026 at 10:14 pm
    /.*?([0-9]{2,}|[2-9]{1}).*/s
    

    matches a one-digit number > 1 or any multi-digit number.

    please note that this does not match correctly when: “page 1 of 1 pages”

    if the string is fixed, you better go with:

    /page \d+ of (\d+) pages/is
    

    or if the string is not absolutely fixed but you want the second number from the string you may use:

    /\D*(\d+)\D*(\d+)\D*/s
    

    and use the second sub-match. (will also match correctly when “page 1 of 1 pages”.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

This gets all numbers but not floating numbers Regex(@^\d+$) I need it to get
i need a regex to replace a string. <span class=\Translation\ lang=\ThisLanguage\> with this one:
I am currently using this regex to get the page number from the url:
I need a regex for four-digit numbers separated by comma (default can also be
I need a regex that will give me the following results from each example
I need to split this line string in each line, I need to get
Can someone help me to match the pattern? I need to get numbers out
My string of text looks like this: johndoe@domain.com (John Doe) I need to get
I need a regex (for use in an ASP .NET web site) to validate
I got this url for example http://www.yellowpages.com/manhattan-beach-ca/mip/marriott-manhattan-beach-4933923?lid=185795402 I want to get the last digit

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.