Jump to content

stringbetween QUOTES?


Recommended Posts

  • Moderators

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.

Link to comment
Share on other sites

  • Moderators

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.

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...