Using replace with regular expressions - VBA

后端 未结 1 1008
粉色の甜心
粉色の甜心 2021-01-14 12:08

I would like to format a text. I mean something like this: I\'d like to transform this:

\"something\'text between apostrophes\'text\"

into

1条回答
  •  悲&欢浪女
    2021-01-14 12:25

    You can try this regex:

    ('[^']+')
    

    and replace by this:

    " $1 "
    

    Regex 101 Demo

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