PC Nerd Posted December 31, 2007 Share Posted December 31, 2007 Hi, Im writing scripts that validate user input - and Ive been told that regular expressions are by far the best way to go. the problem is that I dont understand how to format the string to validate with. ie ereg("validation string", $var); Im wondeirng if anyone here has a good tutorial that will explain how to construict one of these strings so that I can validate different data sets. Im particularly interested in text/date formats and emails etc. Thanks for any and all help in advance Link to comment https://forums.phpfreaks.com/topic/83836-regular-expressions-formatting-the-expression/ Share on other sites More sharing options...
aosmith Posted December 31, 2007 Share Posted December 31, 2007 have a look here: http://www.phpfreaks.com/phpref/42.php Link to comment https://forums.phpfreaks.com/topic/83836-regular-expressions-formatting-the-expression/#findComment-426675 Share on other sites More sharing options...
PC Nerd Posted December 31, 2007 Author Share Posted December 31, 2007 Thanks I understand the basics - but i dont understand how to construct the 3{z} stuff . is ther elike a list or table that says what to do? Thanks for oyu help Link to comment https://forums.phpfreaks.com/topic/83836-regular-expressions-formatting-the-expression/#findComment-426679 Share on other sites More sharing options...
wildteen88 Posted December 31, 2007 Share Posted December 31, 2007 Have a look at the stickys in the Regex Forum most importantly the one marked common expressions. Link to comment https://forums.phpfreaks.com/topic/83836-regular-expressions-formatting-the-expression/#findComment-426745 Share on other sites More sharing options...
PC Nerd Posted December 31, 2007 Author Share Posted December 31, 2007 Thanks - thats got it Thansk for all your help - Happy New Year :> Link to comment https://forums.phpfreaks.com/topic/83836-regular-expressions-formatting-the-expression/#findComment-426983 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.