How to replace whitespace with notepad++ between two characters

前端 未结 2 1112
执笔经年
执笔经年 2021-02-15 11:00

I have question how to replace whitespace with _ using notepad++ regex between [] characters

Example :

sl.[Posting date]                       AS TIME, 
         


        
2条回答
  •  -上瘾入骨i
    2021-02-15 11:46

    Use

    Regex Replace

    (\[[^ ]*) +(.*\])
    

    with

    $1_$2
    

    if you want to replace multiple space character with a single _ OR

    Regex Replace

    (\[[^ ]*) (.*\])
    

    with

    $1_$2
    

    if you want to replace each space character with a single _

提交回复
热议问题