regex.replace

G

Guest

I'm a newbie to regular expressions. I've a requirement where in I need to
search a string and replace a pattern within it....
I want to replace the src attribute of the below string....
" <img src=\"c:\\windows\\windows\\desktop\\imagfes.jpg\">gfhsdfjsd<img
src="\c:\\windows\\win23\\images/jpg\\>jfdshfjdsh<img
src=\"c:\\win\\winnt\\images.gif."...................

My output should be
" <img src=\"d:\\images\\imagfes.jpg\">gfhsdfjsd<img
src="\d:\\images\\images/jpg\\>jfdshfjdsh<img
src=\"d:\\images\\images.gif."...................

can anyone help me out
 
G

Guest

Answer under Framework.

--
Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA

***************************
Think Outside the Box!
***************************
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top