On Sun Feb 08 08:25:26 2015, masak wrote: > <masak> m: say "foo".comb(/o/) > <camelia> rakudo-moar d9f58f: OUTPUT«o o» > <masak> m: say "foo".comb('o') > <camelia> rakudo-moar d9f58f: OUTPUT«Cannot call 'comb' [...]» > * masak suggests the latter form work, too > <masak> reason: I saw some code I had written where I had a regex with > just a literal string in it. I thought "hey, I ought to be able to get > away with writing just the string here..." > <masak> didn't work. > <colomon> +1 > <colomon> just a string does work with subst. > <colomon> m: say "foo".subst("o","e") > <camelia> rakudo-moar d9f58f: OUTPUT«feo» > <masak> colomon: good point. > * masak submits NYI rakudobug
Added; updated the already existing tests in S32-str/comb.t to include some more conditions. -- Will "Coke" Coleda