Skip to content

Instantly share code, notes, and snippets.

@AnubhavUjjawal
Created March 2, 2019 16:59
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/bca06500f60e4815fa012ba978b4247c to your computer and use it in GitHub Desktop.
Save AnubhavUjjawal/bca06500f60e4815fa012ba978b4247c 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));
}
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