Upgrade example project to support xcode 6
Only create the Regex object once instead of on each cast