Created
March 2, 2019 16:59
-
-
Save AnubhavUjjawal/bca06500f60e4815fa012ba978b4247c to your computer and use it in GitHub Desktop.
regx chapel confusion
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
use Regexp; | |
proc isFullString(in obj): bool { | |
var obj2 = obj:string; | |
var myRegexp = compile("a+"); | |
writeln(obj2.match(myRegexp)); | |
} | |
writeln(isFullString("abcdef"), isFullString("aaa"), isFullString("a"), isFullString("")); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment