Change to local api. Fix regex bug