bri0987 Posted November 10, 2007 Share Posted November 10, 2007 I'm working with eregi to validate some form fields I dont understand what this stuff means. "eregi('^[a-z]{2,30}$', $name)" Can someone break this stuff down "^[a-z]{2,30}$" so I can understand it. I'm lost Thanks BRI Link to comment https://forums.phpfreaks.com/topic/76707-solved-eregi-im-trying-to-understand-this-can-someone-help/ Share on other sites More sharing options...
pocobueno1388 Posted November 10, 2007 Share Posted November 10, 2007 It's called a Regular Expression (Regex) It's a pretty big topic to cover, but you can find tutorials on google http://www.regular-expressions.info/php.html Link to comment https://forums.phpfreaks.com/topic/76707-solved-eregi-im-trying-to-understand-this-can-someone-help/#findComment-388318 Share on other sites More sharing options...
bri0987 Posted November 10, 2007 Author Share Posted November 10, 2007 Can you tell me of another site to goto one that explains the "^" "$" 0-9 a-z etc etc Link to comment https://forums.phpfreaks.com/topic/76707-solved-eregi-im-trying-to-understand-this-can-someone-help/#findComment-388355 Share on other sites More sharing options...
pocobueno1388 Posted November 10, 2007 Share Posted November 10, 2007 Just type in something like "PHP regular Expressions" in Google, and you will get plenty of results. Link to comment https://forums.phpfreaks.com/topic/76707-solved-eregi-im-trying-to-understand-this-can-someone-help/#findComment-388360 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.