Thanks!<br><br><div class="gmail_quote">On Sat, Dec 15, 2012 at 1:33 PM, Rolf Eike Beer <span dir="ltr">&lt;<a href="mailto:eike@sf-mail.de" target="_blank">eike@sf-mail.de</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="HOEnZb"><div class="h5">Mikael Sundell wrote:<br>
&gt; First, thanks for cmake!<br>
&gt; In cmake, how can I easily replace the first period &quot;.&quot; in a string with a<br>
&gt; substitute using regex and string replace?<br>
&gt; For example:<br>
&gt;   z<br>
&gt;   z.1<br>
&gt;   z.1.2.5<br>
&gt; With replacement &quot;.so&quot;, &quot;.&quot; becomes &quot;.so&quot; as in:<br>
&gt;   z.so<br>
&gt;   z.so.1<br>
&gt;   z.so.1.2.5<br>
&gt; My regex is improving but not fast enough :)<br>
&gt; Thanks,<br>
&gt; Mikael<br>
<br>
</div></div>&quot;^([^.]*)\.(.*)&quot; &quot;\\1.so.\2&quot;<br>
<span class="HOEnZb"><font color="#888888"><br>
Eike<br>
-- </font></span><br>--<br>
<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the CMake FAQ at: <a href="http://www.cmake.org/Wiki/CMake_FAQ" target="_blank">http://www.cmake.org/Wiki/CMake_FAQ</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.cmake.org/mailman/listinfo/cmake" target="_blank">http://www.cmake.org/mailman/listinfo/cmake</a><br></blockquote></div><br>