开发者

String Manipulation required

开发者 https://www.devze.com 2023-01-10 09:54 出处:网络
Merged with String manipulation in C#: strip a path using the ch开发者_如何学编程aracters after each numeric value.
Merged with String manipulation in C#: strip a path using the ch开发者_如何学编程aracters after each numeric value.

Given an input string, I would like to get the output from this in the specified format: filename;path.

For the input string /vob/TEST/.@@/main/ch_vobsweb/1/VOBSWeb/main/ch_vobsweb/4/VobsWebUI/main/ch_vobsweb/2/VaultWeb/main/ch_vobsweb/2/func.js

I expect this output string: func.js;VOBSWeb/VosWebUI/VaultWeb/func.js

The filename is listed at the end of the whole string, and its path is supposed to be stripped using the characters after each numeric value (eg. /1/VOBSWeb/ and then /4/VobsWebUI and then /2/vaultWeb)

0

精彩评论

暂无评论...
验证码 换一张
取 消