I have two buttons on form, one of the buttons contain currency code (EUR, USD, GBP,CHF,..) and another one - trade direction (BUY or SELL). And some utility recognize buttons b
^(?!BUY)[A-Z]{3}$
(?!BUY) is negative lookahead that would fail if it matches the regex BUY
(?!BUY)
BUY