Sign in to follow this  
Followers 0
cent

_StringBetween Fails

4 posts in this topic

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)')

Share this post


Link to post
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

Share this post


Link to post
Share on other sites

#3 ·  Posted (edited)

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.

Edited by Zedna

Share this post


Link to post
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 !!

Share this post


Link to post
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
Sign in to follow this  
Followers 0