Regex String Replacement and Split using PHP

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

  1. Replace only those @stroage// who is inside src="" to http://mydomain/folder/
  2. 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

Replay

Category: php Time: 2016-07-30 Views: 0

Related post

iOS development

Android development

Python development

JAVA development

Development language

PHP development

Ruby development

search

Front-end development

Database

development tools

Open Platform

Javascript development

.NET development

cloud computing

server

Copyright (C) avrocks.com, All Rights Reserved.

processed in 0.663 (s). 12 q(s)