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