Last active
March 2, 2019 19:14
-
-
Save AnubhavUjjawal/5f8ad0717ef423c9142edc3b1d084e29 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)); | |
return true; | |
} | |
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