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"    

demo

http://regex101.com/r/gb4ot5


Comments

Popular posts from this blog

python - Subclassed QStyledItemDelegate ignores Stylesheet -

java - HttpClient 3.1 Connection pooling vs HttpClient 4.3.2 -

SQL: Divide the sum of values in one table with the count of rows in another -