crashmaster Posted May 20, 2007 Share Posted May 20, 2007 HI there, I dont understand EREG patterns, can somebody create PATTERN for IP address it sould be something like this, but it doesn't work: ereg ("[0-9]{1-3}+\.[0-9]{1-3}+\.[0-9]{1-3}+\.[0-9]{1-3}" ,$_POST['IP']); Link to comment https://forums.phpfreaks.com/topic/52209-solved-ereg-pattern-for-ip/ Share on other sites More sharing options...
BlackenedSky Posted May 20, 2007 Share Posted May 20, 2007 It should be: [0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3} Link to comment https://forums.phpfreaks.com/topic/52209-solved-ereg-pattern-for-ip/#findComment-257511 Share on other sites More sharing options...
crashmaster Posted May 20, 2007 Author Share Posted May 20, 2007 thank you, it works ) ADMIN: PROBLEM IS SOLVED Link to comment https://forums.phpfreaks.com/topic/52209-solved-ereg-pattern-for-ip/#findComment-257521 Share on other sites More sharing options...
MadTechie Posted May 20, 2007 Share Posted May 20, 2007 Click solved (bottom left) Link to comment https://forums.phpfreaks.com/topic/52209-solved-ereg-pattern-for-ip/#findComment-257539 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.