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)"

regex added to attached file. Some slashes were stripped out of the original description.

Compétences : XSLT

en voir plus : xsl find replace string example, replace string xsl, xslt find replace text example, work find, using regex in c, to string, text to string, string the, string i, string find c, regex in c, regex example, m string, find work com, c++ find, find replace xslt, xsl find replace url, regex &, xslt xml, replace, Regex, find work, find domain, find an, c++ regex

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.

%selectedBids___i_sum_sub_7% %project_currencyDetails_sign_sub_8% USD en 0 jours
(0 Commentaires)

I have it ready

%selectedBids___i_sum_sub_7% %project_currencyDetails_sign_sub_8% USD en 0 jours
(0 Commentaires)

4 freelance font une offre moyenne de $40 pour ce travail


Gone is the time when only unix ,perl could use [url removed, login to view] can also now. Assured work. Help and support through conversation at skype or yahoo.

%bids___i_sum_sub_32% %project_currencyDetails_sign_sub_33% USD en 1 jour
(0 Commentaires)

It will be completed in 5 hrs.

%bids___i_sum_sub_35% %project_currencyDetails_sign_sub_36% USD en 2 jours
(0 Commentaires)