Steps to reproduce this issue
- Suppose we have
1234hello1234
- Want to change into
1234HELLO1234
- match with
([\d]{4})([a-z]{5})([\d]{4})
- replace with
$1\U$2$3
Current behavior
result: 1234Uhello1234
Expected behavior
result: 1234HELLO1234
https://regex101.com/r/0h6YEG/1
Possible solution
I'm not sure whether changing current regex back-end is needed.
The webste below states that Delphi doesn't support case changing context \U$match.
https://www.regular-expressions.info/refreplacecase.html
Instead Delphi supports \U0 - \U99 but it doesn't work either.
Environment