regex match word but not another code example Example: js regex to find string but not another ^(?!.*details\.cfm).*selector=size.*$