Is there any implementation of regex that allow to replace group in regex with lowercase version of it?
Most Regex implementations allow you to pass a callback function when doing a replace, hence you can simply return a lowercase version of the match from the callback.