[llvm] [Support] Add `\{<ref>}` backreferences in Regex::sub() (PR #67220)

David Blaikie via llvm-commits llvm-commits at lists.llvm.org
Sat Sep 23 18:45:03 PDT 2023


dwblaikie wrote:

I guess a workaround would be to add some empty braces to separate the matching number from the following digits? (`\3()42`)? Maybe that'd be sufficient, if a bit quirky? (I'm not totally opposed to this patch/feature addition either)

How's this compare to other regex libraries & what syntax they use for this situation?

https://github.com/llvm/llvm-project/pull/67220


More information about the llvm-commits mailing list