Sign in to follow this  
Followers 0
element72

How do you identify a specific expression in html?

5 posts in this topic

#1 ·  Posted (edited)

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

Share this post


Link to post
Share on other sites



#2 ·  Posted (edited)

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

Monkey's are, like, natures humans.

Share this post


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.

Share this post


Link to post
Share on other sites

Ok I am having trouble figuring out the 'pattern' portion of the StringRegExp(). I am trying so many different things and I am starting to doubt myself.

Share this post


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
Sign in to follow this  
Followers 0