I have a sample string in PHP
$var = 'lurm limsrh domw en wonf src="@storage//user1/path/file.txt" and any lorm lipsm tjp quor it src="@storage//user2/path/file.txt" utt fine @storage// no chnge';
i have to want fillowing opration using PHP
- Replace only those @stroage// who is inside src="" to http://mydomain/folder/
- Replace all user to md5(user);. The username must comes afer @storage// ie it comes between '@storage//' to squencly frist '/' also replace only those who is inside src=""
Plz help me on regx expression use for same