Regex: Finding strings that doesn't start with X

后端 未结 2 1852
陌清茗
陌清茗 2021-01-01 18:26

I am completely hopeless with regular expressions...

I have a Velocimacro named #addButton, and I have a JS function named addButton(). Now

2条回答
  •  没有蜡笔的小新
    2021-01-01 18:35

    /([^#]|^)addButton/
    

    It will match every string where "addButton" is not preceded by "#" or the beginning of the string.

提交回复
热议问题