Jump to content

Read string between 2 known strings in html

Recommended Posts

the problem is the following: in the html-source of a page is a tag with a variable in itself, the tag itself is included 10 or more times in the file...(its like this: "<bla anything="1" bla="5">user1</bla>, the tag repeats often, but the part of "user1" changes, not only the letters but also the length)

can you tell me how I search for user1, user2 etc? I have to search bewteen the 2 known tags <bla anything="1" bla="5"> AND </bla>, so i just need the string bewteen those two tags, but i dont know how to pick it out...I hope youll help me again, thanks


Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Create New...