Sign in to follow this  
Followers 0
APRES

Help with StringRegex

3 posts in this topic

#1 ·  Posted (edited)

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

Share this post


Link to post
Share on other sites



Thank you!

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