<script>

var strOrigin = "0.168.102.2";

var re = /([1]\d\d|[2][0-5][0-5]|[1-9][0-9]|[0-9]){1}(\.([1]\d\d|[2][0-5][0-5]|[1-9][0-9]|[0-9])){3}/gi;    //+(\.\d)*)/

alert(strOrigin.match(re));

</script>

+ Recent posts