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