Starfighter Posted August 11, 2007 Posted August 11, 2007 Hello People, I have a problem with the _StringBetween function. #include <String.au3> Dim $Director Dim $TestString $TestString="<div class=info><h5>Title:</h5>The Bourne Ultimatum (2007)</div><div class=info><h5>Director:</h5>Paul Greengrass</div><div class=info><h5>Release Date:</h5>3 August 2007 (USA)</div>" $Director=_StringBetween($TestString,"<div class=info><h5>Director:</h5>","</div>") Msgbox(0,"Director","*" & $Director & "*") $Director is empty! Help me please. Thank you.
Kip Posted August 11, 2007 Posted August 11, 2007 (edited) because $Director is an array, not a string. use: Msgbox(0,"Director","*" & $Director[0] & "*") Edited August 11, 2007 by kip MailSpons: Fake SMTP server for safe email testing Dutch postcode & address API.
Moderators SmOke_N Posted August 11, 2007 Moderators Posted August 11, 2007 His version probably isn't going to work anyway... he has operators in that statement that he isn't handling properly. If you don't understand RegExp much, you may want to just use the Non-RegExp option provided. 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.
Starfighter Posted August 11, 2007 Author Posted August 11, 2007 because $Director is an array, not a string. use: Msgbox(0,"Director","*" & $Director[0] & "*") Oh, my god. Thank you!
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