Jump to content

_StringBetween Fails


Recommended Posts

Hello everyone !

I have a problem with the _StringBetween function. It won't return me nothing even if $o1 is a string and do return the text i want to parse. Can you please tell me where i'm wrong ?

$o1 = _IEBodyReadText($oFrame)

$o = String ($o1) ; i ve tried without this line too

$Subj= _StringBetween( $o, 'F', 'll')

$Sender = _StringBetween( $o, 'To: ', ' (@hotmail.com)')

Link to comment
Share on other sites

i can't see where your using it in it.. but try this

msgbox (48, 'Notification', $Subj[0]) ;$subj[0] returns the first found string
Link to comment
Share on other sites

i can't see where your using it in it.. but try this

msgbox (48, 'Notification', $Subj[0]) ;$subj[0] returns the first found string
Hey looks like it's working thank you very much mate !

Actually i'm using it in a script that login to my hotmail and retrieve the mails title + sender. It's made to make some tests.

Try testing with constant as input text:

$o1 = 'F Some subject||To: person (@hotmail.com)'

$Subj= _StringBetween( $o, 'F', 'll')
$Sender = _StringBetween( $o, 'To: ', ' (@hotmail.com)')

Maybe there is problem with CRLF chars inside text.

That was my first fear too ^^ Thx for ur answer !!
Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...