<div dir="ltr"><div><div>According to Google, this should do the trick<br>perl -p -i -e 's/\[\[Image\((.+?)\)\]\]/\{\{thumbnail\($1\)\}\}/g' filename.txt<br><br></div>(note that it replaces [[Image...]] with {{thumbnail...}} in the file without creating a backup)).<br><br></div>/Jens E<br></div><div class="gmail_extra"><br><div class="gmail_quote">2016-02-19 21:00 GMT+01:00 Holger Freyther <span dir="ltr"><<a href="mailto:holger@freyther.de" target="_blank">holger@freyther.de</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class=""><br>
> On 19 Feb 2016, at 08:09, Holger Freyther <<a href="mailto:holger@freyther.de">holger@freyther.de</a>> wrote:<br>
><br>
><br>
> The wiki conversion is not that great. We really have to do some work in post processing and making sure that all content has been migrated. E.g. "Software/Overview" and "SoftwareOverview" seem to confuse the importer:<br>
><br>
> <a href="http://projects.osmocom.org/projects/baseband/wiki/SoftwareOverview" rel="noreferrer" target="_blank">http://projects.osmocom.org/projects/baseband/wiki/SoftwareOverview</a> vs. <a href="http://bb.osmocom.org/trac/wiki/Software/Overview" rel="noreferrer" target="_blank">http://bb.osmocom.org/trac/wiki/Software/Overview</a> vs. <a href="http://bb.osmocom.org/trac/wiki/SoftwareOverview" rel="noreferrer" target="_blank">http://bb.osmocom.org/trac/wiki/SoftwareOverview</a><br>
<br>
</span>I am fixing this but if somebody wants to help with some code/regexp it would be nice too.<br>
<br>
In trac we have:<br>
<br>
        [[Image(motorola_filter_replacement_step_1_low.jpg, 250px)]]<br>
<br>
For redmine we need:<br>
<br>
        {{thumbnail(motorola_filter_replacement_step_1_low.jpg, size=250)}}<br>
<br>
Anyone wants to try his luck with a regexp to do this automatically? Or a bit of ruby code to split and manipulate if it is matching [[Image?<br>
<br>
<br>
</blockquote></div><br></div>