Mikael Sundell wrote: > First, thanks for cmake! > In cmake, how can I easily replace the first period "." in a string with a > substitute using regex and string replace? > For example: > z > z.1 > z.1.2.5 > With replacement ".so", "." becomes ".so" as in: > z.so > z.so.1 > z.so.1.2.5 > My regex is improving but not fast enough :) > Thanks, > Mikael
"^([^.]*)\.(.*)" "\\1.so.\2" Eike --
signature.asc
Description: This is a digitally signed message part.
-- Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Follow this link to subscribe/unsubscribe: http://www.cmake.org/mailman/listinfo/cmake