optimize proxy extraction regexp