How do I replace multiple characters with the same number of characters with a regular expression?

后端 未结 3 1803
旧巷少年郎
旧巷少年郎 2021-01-20 23:58

I\'ve got the following source:

011011000010011011&         


        
3条回答
  •  被撕碎了的回忆
    2021-01-21 00:16

    This regex will only match 1 | 0 if it's preceded with "white">.
    the (?<=...) syntax in regex is called positive lookbehind...

    (?<="white">)([10]+)
    

提交回复
热议问题