From a1153f201290b3c1c95b3ec91fefd9d97e6509f1 Mon Sep 17 00:00:00 2001
From: Steve Dekorte
Io> re := "is.*a" asRegex Io> "This is a test. This is also a test." \ - allMatchesOfRegex(" is[^.]*a") replaceAllWith(" is not a") + matchesOfRegex(" is[^.]*a") replaceAllWith(" is not a") ==> "This is not a test. This is not a test.
-Io> "11aabb" allMatchesOfRegex("aa*") +Io> "11aabb" matchesOfRegex("aa*") ==> list("a", "a") Io> re := "(wom)(bat)" asRegex diff --git a/libs/iovm/io/System.io b/libs/iovm/io/System.io index cb9476dd3..f0b02f2fd 100644 --- a/libs/iovm/io/System.io +++ b/libs/iovm/io/System.io @@ -33,7 +33,7 @@ System do( optsNoKey := List clone arguments foreach(i, arg, - if(arg beginsWithSeq("--") isNil, + if(arg beginsWithSeq("--") isFalse, optsNoKey append(arg) continue )