Darkness Soul Posted April 27, 2006 Share Posted April 27, 2006 Hi guys,I'm learning about that preg_replace, but, all tutorials I have found, have no info about how to use it as well.. I mean that [i]mixed pattern[/i] field..Like this exemple.. it was suppose to secury an url from a user or form to call in the require/include..[code]$url = $_POST['url']$url = preg_replace ( '@\.\.*@' , '.' , $url );require ( $url );[/code]So, what the frell is that [b]'@\.\.*@'[/b]..? o-o^^ Thank you..D.Soul Link to comment https://forums.phpfreaks.com/topic/8549-learning-out/ Share on other sites More sharing options...
ober Posted April 27, 2006 Share Posted April 27, 2006 Spend some time with this website... hopefully it'll help you: [a href=\"http://www.regular-expressions.net/\" target=\"_blank\"]http://www.regular-expressions.net/[/a] Link to comment https://forums.phpfreaks.com/topic/8549-learning-out/#findComment-31329 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.