Does anybody know how to use the function eregi_replace in order to remove the substring "..\" or "../" from a string
for example from the string
....\dir1\dir11\file1.html
I want the string : dir1\dir11\file1.html
$newpath_st = eregi_replace("(../)|(..\)","",$path_st);