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
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
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.
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:
or if the string is not absolutely fixed but you want the second number from the string you may use:
and use the second sub-match. (will also match correctly when “page 1 of 1 pages”.