I am completely hopeless with regular expressions...
I have a Velocimacro named #addButton, and I have a JS function named addButton(). Now
#addButton
addButton()
/([^#]|^)addButton/
It will match every string where "addButton" is not preceded by "#" or the beginning of the string.