Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Parsing HTML?

Status
Not open for further replies.

grande

Programmer
Feb 14, 2005
657
CA
Hi all, I was wondering if you could help me with this.

I'm parsing HTML, and I was wondering how I could see if there is an opening tag (<) followed by any non-slash character.

For example, this would return true:
<a href="
But this would return false:
</a>

(Keep in mind I'm on ActionScript 2, so RegEx isn't an option for me)

Thanks,
- Matt.

-------------------------
Matt Grande
C# Master.
Ruby on Rails Admirer.
ActionScript Student.
JavaScript Hate-Monger.
 
You should be able to do that using various String Class methods such as indexOf(), charAt() etc.

But what I usually do for parsing HTML is to use XML Class. HTML is a form of XML, you can treat it as XML.

Kenneth Kawamoto
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top