Posted By

dbiesecke on 06/28/16


Tagged

regex ip ipAddress


Versions (?)

GetIP & GetIPPort Regex


 / Published in: Regular Expression
 

  • 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"'
  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
Posted By: lindawalker on February 9, 2017

Platinum XT1000 Words matter, so avoid using the words "exercise" or "workout" to describe exercising. If you are like most people, just hearing those words is demotivating. The best way to get around this is to refer to the exercise you are doing by its actual name, such as swimming or skiing. Read More======http://www.muscleperfect.com/platinum-xt-1000/

You need to login to post a comment.