[CMake] Help with REGEX expression

Mike Jackson mike.jackson at bluequartz.net
Thu Sep 18 13:53:11 EDT 2008


I am trying to parse out the OS Version from the following:


/Developer/SDKs/MacOSX10.5.sdk
/Developer/SDKs/MacOSX10.4u.sdk
/Developer/SDKs/MacOSX10.3.9.sdk

I only need the 10.5, 10.4 or 10.3 so I can compare it against another  
number (10.x or even 11.x).

I have no idea where to start with this. Could anyone suggest  
somewhere to start .. (besides a good Regex tutorial.. )

Thanks
  _________________________________________________
| Mike Jackson - Principal Software Engineer      |
| BlueQuartz Software                             |
| mike.jackson at bluequartz.net                     |
| www.bluequartz.net                              |
---------------------------------------------------



More information about the CMake mailing list