Add functionality for a regex version of str_replace. str_replace is currently available but does not support regexes.
- T27619 is stuck, but currently (on enwiki) we just add the extra variables to the filter manually, but they (or a variable containing them) needs to be copied in the filter regex for every occurrence of that letter. The expression would be more readable if we could just regex replace the added_lines.
/* Reusable letters, for when ccnorm isn't enough */ o := "ÒÔ"; exp1 := "p[" + o + "]int";
After a str_replace_regexp is available:
/* Reusable letters, for when ccnorm isn't enough */ new_added_lines := str_replace_regexp(ccnorm(added_lines), "[ÒÔ]", "o"); exp1 := "point";