milkmoron Posted July 24, 2018 Posted July 24, 2018 I am trying to search in a web browser dates XX/XX/XXXX that are also links. I want to click them after and remove them from the array. This is all I have so far. Nothing shows up. What am I doing wrong? ControlFocus ("Customer Center", "", "") Local $aArray = StringRegExp('(..)/(..)/(....)', '(..)/(..)/(....)', $STR_REGEXPARRAYFULLMATCH) For $i = 0 To UBound($aArray) - 1 MsgBox($MB_SYSTEMMODAL, "RegExp Test with Option 2 - " & $i, $aArray[$i]) Next
jchd Posted July 24, 2018 Posted July 24, 2018 The first parameter needs to be the text to search, not the pattern! Local $sHtml = ... ; here grab html text containing dates in format 99/99/9999 Local $aArray = StringRegExp($sHtml, '(\d\d/\d\d/\d\d\d\d)', $STR_REGEXPARRAYFULLMATCH) _ArrayDisplay($aArray) This wonderful site allows debugging and testing regular expressions (many flavors available). An absolute must have in your bookmarks.Another excellent RegExp tutorial. Don't forget downloading your copy of up-to-date pcretest.exe and pcregrep.exe hereRegExp tutorial: enough to get startedPCRE v8.33 regexp documentation latest available release and currently implemented in AutoIt beta. SQLitespeed is another feature-rich premier SQLite manager (includes import/export). Well worth a try.SQLite Expert (freeware Personal Edition or payware Pro version) is a very useful SQLite database manager.An excellent eBook covering almost every aspect of SQLite3: a must-read for anyone doing serious work.SQL tutorial (covers "generic" SQL, but most of it applies to SQLite as well)A work-in-progress SQLite3 tutorial. Don't miss other LxyzTHW pages!SQLite official website with full documentation (may be newer than the SQLite library that comes standard with AutoIt)
milkmoron Posted July 24, 2018 Author Posted July 24, 2018 (edited) 49 minutes ago, jchd said: The first parameter needs to be the text to search, not the pattern! Local $sHtml = ... ; here grab html text containing dates in format 99/99/9999 Local $aArray = StringRegExp($sHtml, '(\d\d/\d\d/\d\d\d\d)', $STR_REGEXPARRAYFULLMATCH) _ArrayDisplay($aArray) Is there a way to grab the whole text of a webpage? The text im trying to gather is some sort of javascipt applet. Edited July 24, 2018 by milkmoron
jchd Posted July 24, 2018 Posted July 24, 2018 I can't see well at this distance! Can you post a link? FrancescoDiMuro 1 This wonderful site allows debugging and testing regular expressions (many flavors available). An absolute must have in your bookmarks.Another excellent RegExp tutorial. Don't forget downloading your copy of up-to-date pcretest.exe and pcregrep.exe hereRegExp tutorial: enough to get startedPCRE v8.33 regexp documentation latest available release and currently implemented in AutoIt beta. SQLitespeed is another feature-rich premier SQLite manager (includes import/export). Well worth a try.SQLite Expert (freeware Personal Edition or payware Pro version) is a very useful SQLite database manager.An excellent eBook covering almost every aspect of SQLite3: a must-read for anyone doing serious work.SQL tutorial (covers "generic" SQL, but most of it applies to SQLite as well)A work-in-progress SQLite3 tutorial. Don't miss other LxyzTHW pages!SQLite official website with full documentation (may be newer than the SQLite library that comes standard with AutoIt)
milkmoron Posted July 24, 2018 Author Posted July 24, 2018 https://pastebin.com/S5Zk0PDr Theres the source but you need a login its a customer management site. Not sure if that helps. I might be able to get a login
jchd Posted July 24, 2018 Posted July 24, 2018 I don't have recent experience with grabbing html from applets, lots of traps there. Wait until a more experienced users pops in. This wonderful site allows debugging and testing regular expressions (many flavors available). An absolute must have in your bookmarks.Another excellent RegExp tutorial. Don't forget downloading your copy of up-to-date pcretest.exe and pcregrep.exe hereRegExp tutorial: enough to get startedPCRE v8.33 regexp documentation latest available release and currently implemented in AutoIt beta. SQLitespeed is another feature-rich premier SQLite manager (includes import/export). Well worth a try.SQLite Expert (freeware Personal Edition or payware Pro version) is a very useful SQLite database manager.An excellent eBook covering almost every aspect of SQLite3: a must-read for anyone doing serious work.SQL tutorial (covers "generic" SQL, but most of it applies to SQLite as well)A work-in-progress SQLite3 tutorial. Don't miss other LxyzTHW pages!SQLite official website with full documentation (may be newer than the SQLite library that comes standard with AutoIt)
milkmoron Posted July 24, 2018 Author Posted July 24, 2018 (edited) 7 minutes ago, jchd said: I don't have recent experience with grabbing html from applets, lots of traps there. Wait until a more experienced users pops in. Okay I'm stuck on that part though. Do you know how to do an IF statement with IUI? Thats the only parts missing from my script so far. Should I make a new thread with a title specific to my new question? Edited July 24, 2018 by milkmoron
jchd Posted July 24, 2018 Posted July 24, 2018 Never touched IUI, so yes you'd better start a new thread with an more explicit title for that. This wonderful site allows debugging and testing regular expressions (many flavors available). An absolute must have in your bookmarks.Another excellent RegExp tutorial. Don't forget downloading your copy of up-to-date pcretest.exe and pcregrep.exe hereRegExp tutorial: enough to get startedPCRE v8.33 regexp documentation latest available release and currently implemented in AutoIt beta. SQLitespeed is another feature-rich premier SQLite manager (includes import/export). Well worth a try.SQLite Expert (freeware Personal Edition or payware Pro version) is a very useful SQLite database manager.An excellent eBook covering almost every aspect of SQLite3: a must-read for anyone doing serious work.SQL tutorial (covers "generic" SQL, but most of it applies to SQLite as well)A work-in-progress SQLite3 tutorial. Don't miss other LxyzTHW pages!SQLite official website with full documentation (may be newer than the SQLite library that comes standard with AutoIt)
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