jvanegmond Posted April 10, 2008 Share Posted April 10, 2008 (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 April 10, 2008 by Manadar github.com/jvanegmond Link to comment Share on other sites More sharing options...
Xenobiologist Posted April 10, 2008 Share Posted April 10, 2008 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 Link to comment Share on other sites More sharing options...
Paulie Posted April 10, 2008 Share Posted April 10, 2008 Actually, you specifically told it to "Return an array of matches" Last parameter should be 0 to "Returns 1 (matched) or 0 (no match)" Link to comment Share on other sites More sharing options...
jvanegmond Posted April 10, 2008 Author Share Posted April 10, 2008 Oh man, I must have gotten confused with the modes. I used mode 1 while I wanted to use 0. Sorry for bothering. github.com/jvanegmond Link to comment Share on other sites More sharing options...
Squirrely1 Posted April 10, 2008 Share Posted April 10, 2008 $a = StringRegExp(" ","[[:blank:]]",1)You know that using that flag that an arrary is returned? Maybe you want to use zero for a flag instead. Das Häschen benutzt Radar Link to comment Share on other sites More sharing options...
Paulie Posted April 10, 2008 Share Posted April 10, 2008 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. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now