Use regex to bind to click function