Skip to content

Instantly share code, notes, and snippets.

@AnubhavUjjawal
Last active March 2, 2019 19:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save AnubhavUjjawal/5f8ad0717ef423c9142edc3b1d084e29 to your computer and use it in GitHub Desktop.
Save AnubhavUjjawal/5f8ad0717ef423c9142edc3b1d084e29 to your computer and use it in GitHub Desktop.
regx chapel confusion
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