Jump to content

Recommended Posts

Posted (edited)

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
Posted (edited)

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
  • Moderators
Posted

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.

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
×
×
  • Create New...