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']); Quote 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} Quote 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 Quote 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) Quote 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
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.