En cours

xsl to find and replace a string

Given text, use XSLT and regex to find an ID and a URL then replace the URL with a given URL+the ID.


Given the RSS data below, for each item use only XSL to find the ID ("ID12345" or "ID00000" in this example) and replace the URL ("[url removed, login to view]" in this example) with the new URL "https://[url removed, login to view]" + the ID ("https://[url removed, login to view]" in this example)

sample source rss file to transform attached

Some regex you can use. This seems to work but I'm open to using different regex if you need.

for ID: "ID....."

for URL: "\bhref=.([^\x22\r\n]+\x22)"

Compétences : XSLT

Voir plus : replace string xsl, work find, to string, text string, string the, string i, regex example, m string, find replace xslt, xsl find replace url, xslt xml, replace, regex, find work, find domain, find an, c regex, string find, xsl xml, find rss xml, xml transform, xslt file, find data url, find replace, find file

Concernant l'employeur :
( 2 commentaires ) redmond, United States

N° du projet : #1051993

Décerné à :


I did it just to see if I can. More in PM.

35 $ USD en 0 jours
(0 Commentaires)

I have it ready

35 $ USD en 0 jours
(0 Commentaires)

4 freelance ont fait une offre moyenne de 40 $ pour ce travail


Gone is the time when only unix ,perl could use regex.XSLT can also now. Assured work. Help and support through conversation at skype or yahoo.

50 $ USD en 1 jour
(0 Commentaires)

It will be completed in 5 hrs.

40 $ USD en 2 jours
(0 Commentaires)