how to remove path

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Locked
eshban
Forum Contributor
Posts: 184
Joined: Mon Sep 05, 2005 1:38 am

how to remove path

Post by eshban »

hello,

i have a Regular expression which just find the

Code: Select all

<Img src = "anyfile.jpg">
tag in an html file

The problem is that i have a <img> tag like

Code: Select all

 <img src = "abc/www/image.jpg">
I want to remove "abc/www" from ther above tag

how can i do it[/syntax]
User avatar
volka
DevNet Evangelist
Posts: 8391
Joined: Tue May 07, 2002 9:48 am
Location: Berlin, ger

Post by volka »

cross-post, see viewtopic.php?t=62602
eshban
Forum Contributor
Posts: 184
Joined: Mon Sep 05, 2005 1:38 am

Post by eshban »

i post it again, because i did not find the correct answer.sorry for that
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

You are not allowed to duplicate threads.
Locked