I have had trouble finding much documentation about regular expression matching in XS modules. I would like to do 1) simple matching ($var =~ /^string/) and 2) simple substitutions ($var =~ s/test/task/g;).
Can someone post or point me to some examples of this using XS code?
Thank you