GetIP & GetIPPort Regex


/ Published in: Regular Expression
Save to your folder(s)

* Usefull as shell command and everyting else
`get-ip='egrep -o "[0-9]{1,4}\.[0-9]{1,4}\.[0-9]{1,4}\.[0-9]{1,4}"'`
`get-ipport='egrep -o "[0-9]{1,4}\.[0-9]{1,4}\.[0-9]{1,4}\.[0-9]{1,4}[0-9 :]+" | sed -e "s/ //g"'`

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.