dyluck Posted May 23, 2010 Share Posted May 23, 2010 Hi There, Is there a resource that explains every single syntax rule in pregmatch like the / * ? ^ [ ] etc. codes in pregmatch and what they do? thanks! Link to comment https://forums.phpfreaks.com/topic/202673-preg-match-syntax-guide/ Share on other sites More sharing options...
-Karl- Posted May 23, 2010 Share Posted May 23, 2010 You mean Regex? Link to comment https://forums.phpfreaks.com/topic/202673-preg-match-syntax-guide/#findComment-1062324 Share on other sites More sharing options...
dyluck Posted May 23, 2010 Author Share Posted May 23, 2010 You mean Regex? So from the PHP manual here is an example: preg_match('@^(?:http://)?([^/]+)@i', There is a bunch of other symbols in there and I don't know what they mean or what they do. Is there a place that explains what each of these extra symbols do? there is slashes, plus signs, brackets, carats etc. Link to comment https://forums.phpfreaks.com/topic/202673-preg-match-syntax-guide/#findComment-1062326 Share on other sites More sharing options...
-Karl- Posted May 23, 2010 Share Posted May 23, 2010 http://uk.php.net/manual/en/regexp.reference.meta.php Link to comment https://forums.phpfreaks.com/topic/202673-preg-match-syntax-guide/#findComment-1062327 Share on other sites More sharing options...
dyluck Posted May 23, 2010 Author Share Posted May 23, 2010 http://uk.php.net/manual/en/regexp.reference.meta.php Thanks! Thats what I was looking for. Didn't know they were named "regexp" Link to comment https://forums.phpfreaks.com/topic/202673-preg-match-syntax-guide/#findComment-1062329 Share on other sites More sharing options...
-Karl- Posted May 23, 2010 Share Posted May 23, 2010 Means Regular Expression Link to comment https://forums.phpfreaks.com/topic/202673-preg-match-syntax-guide/#findComment-1062330 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.