Jump to content

Help with StringRegex


APRES
 Share

Recommended Posts

In the below code I expected that the function will check the string $str

for pattern $pattern and will write the found matches into array $Arstr

But I get error: Subscript used with non-Array variable.:

Do I something wrong or did I understand the documentation not good?

Thank you for your short look.

Dim $Arstr[2]

$str=">4PL Q30.73 197.85TP 4P AMS Q30.73 197.85"

$pattern="4P"

$Arstr=StringRegExp ( $str, $pattern , 3 )

MsgBox(0, "Found?", @Extended)

MsgBox(0, "Show $arstr", $Arstr[1])

Edited by APRES
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...