js regex to find string but not another

Solutions on MaxInterview for js regex to find string but not another by the best coders in the world