Jump to content

How do you identify a specific expression in html?

Recommended Posts

I gathered the source from a webpage and I want to identify a specific word(s). For example, in the html  I see <td> sdfsdFox sdf</td> or <td> Cat© Foxtsf sdfd </td>.

Is there a function that can determine that Fox (and Cat) is in between <td> and </td> ?

Edited by element72
Link to post
Share on other sites

If I recall it's something like _IETableGetCollection and you iterate through it, that's if you're using IE UDF

If you are just going through the flat source you can use a RegExp or simply 

_StringBetween($source, "<td>", "</td>")

To get an array.

Edited by JohnOne

AutoIt Absolute Beginners    Require a serial    Pause Script    Video Tutorials by Morthawt   ipify 

Monkey's are, like, natures humans.

Link to post
Share on other sites

Thank you. In laymens terms what is the difference between these 3 flags: 

$STR_REGEXPARRAYMATCH (1)Return array of matches.
$STR_REGEXPARRAYFULLMATCH (2)Return array of matches including the full match (Perl / PHP style).
$STR_REGEXPARRAYGLOBALMATCH (3)Return array of global matches.
Link to post
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...