SynEdit icon indicating copy to clipboard operation
SynEdit copied to clipboard

Does SynRegExpr also support regular expression's case changing replacement syntax?

Open denchat opened this issue 5 years ago • 2 comments

I'm a user of HeidiSQL project (which depends on SynRegExpr). I found that I can not replace changing case with regex in HeidiSQL. I googled for TRegExpr and found out the original implementation actually support replace changing case with regex.

'\U$1\r' transforms into '<Match[1] in uppercase>\r'

TRegExpr Documentation https://regex.sorokin.engineer/en/latest/tregexpr.html#substitute

TRegExpr Repo https://github.com/andgineer/TRegExpr

Please investigate this issue.


I filed an issue originally in HeidiSQL repo here .

denchat avatar Dec 01 '19 14:12 denchat

I have updated TRegExpr with the current code from andgineer in the forked https://github.com/HeidiSQL/SynEdit - I could create a pull request for it, shall I? Be aware that this is a large commit, though it's already tested and compiled here.

ansgarbecker avatar Apr 15 '20 09:04 ansgarbecker

See pr #145

ansgarbecker avatar Apr 15 '20 18:04 ansgarbecker