我有一个 Drupal 模块以这种方式替换文本:
Text to find:
Replace with:
我只需要留下 mp3 的 URL。我想是这样的:
Text to find: (previous text) (mp3 url) (subsequent text)
Replace with: /2
我为 mp3 的 URL 找到了这个:
(((http://www)|(http://)|(www))[-a-zA-Z0-9@:%_\+.~#?&//=]+)\.(mp3|MP3)
但我不知道用什么来匹配前后的整个文本。
(模块是“Feeds Tamper”)