Jump to content
Sign in to follow this  
Ghost21

stringbetween QUOTES?

Recommended Posts

Ghost21

Can you do a stringbetween a " < -- ??? quote ???

_StringBetween($string,'"','"')

will that work ?

Share this post


Link to post
Share on other sites
SmOke_N

Can you do a stringbetween a " < -- ??? quote ???

_StringBetween($string,'"','"')

will that work ?

Did you try and it failed?

Remember it returns an array.


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.

Share this post


Link to post
Share on other sites
Ghost21

Did you try and it failed?

Remember it returns an array.

yeah it doesn't respond with anything

and its the first instance in the string...

Share this post


Link to post
Share on other sites
SmOke_N

yeah it doesn't respond with anything

and its the first instance in the string...

Do you have an actual example string and what you are doing to get it, or are we to guess what you are doing wrong?

Edit:

#include <String.au3>
$sString = 'abcde"efghi"ghijk'
$aArray = _StringBetween($sString, '"', '"')
;Are we an array?
If IsArray($aArray) Then
    MsgBox(64, 'Should be efghi', 'The array returned: ' & $aArray[0])
Else
    MsgBox(16, 'Error', 'Nothing wrong with _StringBetween other than not ' & _
            'knowing how to use it, or the string does not have what you are looking for.')
EndIf

Curious you can't get it to work :) (would be easier with an example by you, to solve your issue).

Edited by SmOke_N

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.

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  

×