Dreamfire Posted January 15, 2009 Posted January 15, 2009 (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ËrBut 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 January 15, 2009 by Dreamfire
BrettF Posted January 15, 2009 Posted January 15, 2009 You wish to get the lines between the random HTML in your example? Vist my blog!UDFs: Opens The Default Mail Client | _LoginBox | Convert Reg to AU3 | BASS.au3 (BASS.dll) (Includes various BASS Libraries) | MultiLang.au3 (Multi-Language GUIs!)Example Scripts: Computer Info Telnet Server | "Secure" HTTP Server (Based on Manadar's Server)Software: AAMP- Advanced AutoIt Media Player | WorldCam | AYTU - Youtube Uploader Tutorials: Learning to Script with AutoIt V3Projects (Hardware + AutoIt): ArduinoUseful Links: AutoIt 1-2-3 | The AutoIt Downloads Section: | SciTE4AutoIt3 Full Version!
Dreamfire Posted January 15, 2009 Author Posted January 15, 2009 You wish to get the lines between the random HTML in your example?yes
Dreamfire Posted January 15, 2009 Author Posted January 15, 2009 (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 January 15, 2009 by Dreamfire
Moderators SmOke_N Posted January 15, 2009 Moderators Posted January 15, 2009 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.
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now