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

  • Home
  • SEARCH
  • 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 8339539
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T04:54:36+00:00 2026-06-09T04:54:36+00:00

I have fetch id 91 from this <img width=526 height=339 style=float: none; src=http://www.test.com/files/thumb/91/595 class=pyro-image

  • 0

I have fetch id 91 from this

 <img width="526" height="339" style="float: none;" src="http://www.test.com/files/thumb/91/595" class="pyro-image" alt="floyd mayweather">

i have tried this using explode and strip tags but not able to get this. its a string which will keep changing according the images.Please help.

  • 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-06-09T04:54:37+00:00Added an answer on June 9, 2026 at 4:54 am

    If I have understood your question correctly, then the following regex should work for you (note, Regex and HTML are not friends, but you can use this instead of an HTML parser, if it’s not more complicated than this).

    A regex of #<img.*src.*/files/thumb/([0-9]+)/([0-9]+).*># should work:

    <?php
        $string = '<img width="526" height="339" style="float: none;" src="http://www.test.com/files/thumb/91/595" class="pyro-image" alt="floyd mayweather">';
        preg_match('#<img.*src.*/files/thumb/([0-9]+)/([0-9]+).*>#', $string, $matches);
        echo "Image ID: " . $matches[1] . "<br />";
        echo "Other number: " . $matches[2] . "<br />";
    ?>
    

    Outputs

    Image ID: 91
    Other number: 595
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have an hierarchy of classes that I fetch from database by LINQ to
I have to fetch all the files from a folder and i am using
I have to fetch about few hundreds records from CoreData and group them by
I have a MySQL DB and I fetch data from there via PowerPivot into
I have two tables services and member_services To fetch records from member_services where member_type_id
I have serialize values in data base, i fetch them from database then when
Hi i have a spec for fetch the files from server and predict the
I am trying to fetch wcf service from jquery. I have written below code
I have the typical emp table from which i want to fetch the hierarchical
I have created my android code wherein I fetch all the data from facebook

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.