I'm very imcompetent with this regexp stuff.
anyways I am using the function preg_replace to replace backslashes with forward slashes for all html links. This is what I have
The function spots the links in the str, but I dont know the syntax to use to replace only the backslashes with forward slashes. any idea???
THANKS!
anyways I am using the function preg_replace to replace backslashes with forward slashes for all html links. This is what I have
Code:
return preg_replace('/<a[^>]*>/','whatgoeshere',$str);
The function spots the links in the str, but I dont know the syntax to use to replace only the backslashes with forward slashes. any idea???
THANKS!