View difference between Paste ID: nEDBc4Ey and dy2bXpj4
SHOW: | | - or go back to the newest paste.
1-
var str = "Das ist ein Test";
1+
	var str = "127.0.0.1";
2-
if (str.test(/i/)) {
2+
	var matches = str.match(/^(\d+)\.(\d+)\.(\d+)\.(\d+)$/);