Re: [CMake] string replace first occurrence of a period using regex

2012-12-16 Thread Mikael Sundell
Thanks! On Sat, Dec 15, 2012 at 1:33 PM, Rolf Eike Beer wrote: > 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 > >

Re: [CMake] string replace first occurrence of a period using regex

2012-12-15 Thread Rolf Eike Beer
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 >