首先定义一个字符串 'recipientsInfo[11]'
1、'recipientsInfo[11]'.replace(/[^\d]/g, '');
2、`recipientsInfo[11]`.match(/\d+/g);