Hi,
regarding your first suggestion, yes, I would love to see that enabled as well, it would be really handy.
Of course I don't know in what context you want to make use of that feature (probably a lot more advanced), but to give an example of an ugly hack to get the required result:
alias test {
var %x, %i = $regsub($1-,/(a)/g,$cr \$+ \$upper(\1) \$+ $cr,%x)
echo -a $remove($(%x,2),$cr)
}
/test blablabla and haha -> blAblAblA And hAhA
Of course one could do $replace($1-,a,A) but that's besides the point.
Greets