use better regex for localdev