Jump to content

Recommended Posts

Posted (edited)

$a = StringRegExp(" ","[[:blank:]]",1)
$b = @error
MsgBox(0, "", "Return value: " & $a & @CRLF & "Error: " & $b )oÝ÷ Ø:²z-«Þj·­º¹ïj[Â¥x)yÈÆ¥+hÛayû§rبÚ+zÛ«Wè®Úîy©ÝÑú+}©lxk¡¶&¥²¬yÛayÉZ²È§rëyËeÉ»­¶¬jëh×6$a = StringRegExp(" ","[:blank:]",1)
$b = @error
MsgBox(0, "", "Return value: " & $a & @CRLF & "Error: " & $b )

Returns 0, while I expect it to return 1.

Edited by Manadar
Posted

Hi,

#include<Misc.au3>
$a = StringRegExp(" ", "[[:blank:]]", 0)
$b = @error
MsgBox(0, "", "Return value: " & _Iif($a, 'TRUE', 'FALSE') & @CRLF & "Error: " & $B)

Mega

Scripts & functions Organize Includes Let Scite organize the include files

Yahtzee The game "Yahtzee" (Kniffel, DiceLion)

LoginWrapper Secure scripts by adding a query (authentication)

_RunOnlyOnThis UDF Make sure that a script can only be executed on ... (Windows / HD / ...)

Internet-Café Server/Client Application Open CD, Start Browser, Lock remote client, etc.

MultipleFuncsWithOneHotkey Start different funcs by hitting one hotkey different times

Posted

Actually, you specifically told it to "Return an array of matches"

Last parameter should be 0 to "Returns 1 (matched) or 0 (no match)"

Posted

You know that using that flag that an arrary is returned? Maybe you want to use zero for a flag instead.

Yes, this has been established... thrice.

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
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...