Jump to content
Sign in to follow this  
Dreamfire

StringRegExp NEWLINE (HTML HELP)

Recommended Posts

Dreamfire

Hi,

I want to StringRegExp some HTML source code, but i cant get the newline to work.

For example; this is my html code

(RANDOM HTML)
<TD class=adminTableTd colSpan=2>Phone</TD>
<TD class=adminTableTd id=row2>00123456789</TD></TR>
(RANDOM HTML)oÝ÷ ÙÊ%¢º4ÓÍ4ÒÊZËr

But so far i was unsuccessful, i know i am missing something but i dont know what.

Maybe you can help me solve this.

Dreamfire, :)

Edited by Dreamfire

Share this post


Link to post
Share on other sites
BrettF
Dreamfire

You wish to get the lines between the random HTML in your example?

yes

Share this post


Link to post
Share on other sites
Dreamfire

if found the solution, it is '.*\n'

StringRegExp($ieSOURCE,'<TD class=adminTableTd colSpan=2>Phone</TD>.*\n<TD class=adminTableTd id=row2>([0-9]{1,20})</TD></TR>',0)
Edited by Dreamfire

Share this post


Link to post
Share on other sites
SmOke_N

Might have tried adding (?s) or (?m) to the front of the expression.


Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.

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  

×