include builtins\regex.e string s = "I am a string" printf(1,"\"%s\" %s with string\n",{s,iff(length(regex(`string$`,s))?"ends":"does not end")}) printf(1,"\"%s\" %s with You\n",{s,iff(length(regex(`^You`,s))?"starts":"does not start")}) ?gsub(`[A-Z]`,"abCDefG","*") ?gsub(`[A-Z]`,"abCDefGH","(&)") ?gsub(`[A-Z]+`,"abCDefGH","(&)") ?gsub(`string`,s,"replacement") s = gsub(`\ba\b`,s,"another") ?s ?gsub(`string`,s,"replacement")