match 

body.match(/\d\.\d\.\d\.\d:\d/g); // 推荐使用exec可以拿到多个数组

 

exec 

var a = [ 'PHPSESSID=sglvjui97o18bg6qsqobj77p86; path=/; HttpOnly' ];
/PHPSESSID=(.*?);/g.exec(a)

 

var a = [ 'PHPSESSID=sglvjui97o18bg6qsqobj77p86; path=/; HttpOnly' ];/PHPSESSID=(.*?);/g.exec(a)