Đang Thực Hiện

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.

Details:

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

Kỹ năng: XSLT

Xem thêm: 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

Về Bên Thuê:
( 2 nhận xét ) redmond, United States

Mã Dự Án: #1051993

Đã trao cho:

kamilzola

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

$35 USD trong 0 ngày
(0 Đánh Giá)
1.1
abhishekmitro

I have it ready

$35 USD trong 0 ngày
(0 Đánh Giá)
1.1

4 freelancer đang chào giá trung bình $40 cho công việc này

ankit15

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 trong 1 ngày
(0 Đánh Giá)
0.0
prjdevelop

It will be completed in 5 hrs.

$40 USD trong 2 ngày
(0 Đánh Giá)
0.0