Thanks!<br><br><div class="gmail_quote">On Sat, Dec 15, 2012 at 1:33 PM, Rolf Eike Beer <span dir="ltr"><<a href="mailto:eike@sf-mail.de" target="_blank">eike@sf-mail.de</a>></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>
> First, thanks for cmake!<br>
> In cmake, how can I easily replace the first period "." in a string with a<br>
> substitute using regex and string replace?<br>
> For example:<br>
> z<br>
> z.1<br>
> z.1.2.5<br>
> With replacement ".so", "." becomes ".so" as in:<br>
> z.so<br>
> z.so.1<br>
> z.so.1.2.5<br>
> My regex is improving but not fast enough :)<br>
> Thanks,<br>
> Mikael<br>
<br>
</div></div>"^([^.]*)\.(.*)" "\\1.so.\2"<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>