158
rated 0 times
[
163]
[
5]
/ answers: 1 / hits: 19868
/ 9 Years ago, mon, september 21, 2015, 12:00:00
var r = bd{1,3}.d{1,3}.d{1,3}.d{1,3}b; //http://www.regular-expressions.info/examples.html
var a = http://www.example.com/landing.aspx?referrer=10.11.12.13;
var t = a.match(r); //Expecting the ip address as a result but gets null
The above is my code to extract ip address from a string.
But it fails to do so.
Kindly advice where it fails.
More From » jquery