[llvm] [Support] Add `\g<ref>` backreferences in Regex::sub() (PR #67220)
    Igor Kudrin via llvm-commits 
    llvm-commits at lists.llvm.org
       
    Wed Sep 27 22:25:25 PDT 2023
    
    
  
igorkudrin wrote:
> Using `\g` for replacement looks good. https://www.regular-expressions.info/replacebackref.html
Thanks for the link. It's interesting that they mention the `\g<ref>` syntax only for referencing named groups, which we do not support.
https://github.com/llvm/llvm-project/pull/67220
    
    
More information about the llvm-commits
mailing list