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"'`


Copy this code and paste it in your HTML
  1. /([0-9]{1,4}\.[0-9]{1,4}\.[0-9]{1,4}\.[0-9]{1,4})/
  2. /([0-9]{1,4}\.[0-9]{1,4}\.[0-9]{1,4}\.[0-9]{1,4})([0-9 :]+)/

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.