阅读背景:

php - 正则表达式从文本行返回ip地址

来源:互联网 

I'm trying to use a regex to capture ip addresses in lines of text. Right now it's kind of screwed up. My code returns ip addresses when lines of text don't contain ip addresses and sometimes it returns "Script)". What am I doing wrong? I would like to return the ip addresses of lines that actually have them, and return nothing if they don't.I'm trying to use a regex to capture ip address




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: