-1

I am using Yahoo Pipes to rewrite a URL. Everything is fine but the last 6 characters of the URL need to be removed from all the links.

Ex.

http://www.mysite.com/blahblah/34567

needs to be rewritten to

http://www.mysite.com/blahblah

The number at the end is always changing, so I am hoping to just chop the last 6 characters off of each url.

4

2 回答 2

0

似乎 (.*)(.....) 和 takinq 中的正则表达式只有第一个匹配项应该可以解决问题

于 2012-05-27T12:47:51.397 回答
0

您需要Sub string module。假设它的功能与其他语言类似,您将需要未定义的 From 值和 -6 的 Length 值,这应该从 URL 的末尾删除 6 个字符。

于 2012-05-26T23:20:08.067 回答