fix regex to protect special core url