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 Quote Link to comment 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 Quote Link to comment 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 Quote Link to comment 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. Quote Link to comment 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.