You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
regex nativly supports the feature to use a string or a function
it would be cool if we could use this inside foxreplace
a simple sample:
var re = /(\b[a-z](?!\s))/g;
var s = "this is a sample text to camelcase this text!";
s1 = s.replace(re, function(x){return x.toUpperCase();});
//or if multiple capture groups something like this
s2 = s.replace(re, function(...x){x.string=x.pop(); x.index=x.pop(); return x[1].toUpperCase();});
The text was updated successfully, but these errors were encountered:
@0styx0 If you can make a PR for this it will be very welcome. But you should include some scary warning about not pasting code from untrusted sources, otherwise a Mozilla reviewer could block its download. See for reference the warning in the URL field in the options page.
regex nativly supports the feature to use a string or a function
it would be cool if we could use this inside foxreplace
a simple sample:
The text was updated successfully, but these errors were encountered: