Regx validation not working

Expression : ^(?!.disabled).$
This expression is getting failed for “btn btn-primary mr-8”. but working fine in https://regex101.com website