Replace regexp capture-group in Notepad++?

前端 未结 2 1884
清歌不尽
清歌不尽 2020-12-13 08:05

Quick question: I have a regexp, ^(?:\\b[A-Z]+\\b\\s+)+(.*)\\d{8}, that gives two capture groups. I would like to replace capture group 1 with a whitespace. Is

相关标签:
2条回答
  • 2020-12-13 08:36

    Try using:

    ^((?:\b[A-Z]+\b\s+)+)(?:.*)(\d{8})
    

    And replace with:

    \1\2
    
    0 讨论(0)
  • 2020-12-13 08:46

    Why would you do that.

    Do it this way

    Regex:^(\b[A-Z]+\b\s+)+(?:.*)(\d{8})

    Replace with:\1 \2

    0 讨论(0)
提交回复
热议问题