Isn't replacement of complex patterns better served by generated regexes (and both .NET's built-in and Rust's most popular regex crate are very fast)?<p>(questioning whether this particular case is illustrative for the point the article makes)