xml - Regular expression to replace string in javascripts -
hi have 1 xml file want replace path in xml. xml hold path of images has many record below
tile5url="images/balcony sunset pano_o_480_5.jpg" so want replace path . want replace "images/" other path "newfolder/images/" or anythings else have used javascript read xml using xmlhttprequest object , generate responsetext read xml
thanks
try this:
/tile5url="(images\/[^"]+)"/ and replace with
tile5url="newfolder/$1"
Comments
Post a Comment