I have a query regarding NSRegularExpression. I can see that the class method escapedPatternForString(), that escapes all characters in a string which could be treated as metacharacters, is unimplemented as per the latest dev snapshot for Linux.
Welcome to Swift version 3.0-dev (LLVM f95d47afa7, Clang f66c5bb67b, Swift b745691a38). Type :help for assistance.
** 1> import Foundation**
** 2> NSRegularExpression.escapedPatternForString(“a+b”)**
fatal error: escapedPatternForString is not yet implemented: file Foundation/NSRegularExpression.swift, line 84
However, I see that this method is available on Swift 2.2-dev for OS X.
Could someone please tell me the rationale behind having it unimplemented for Linux? Were there any Linux-specific obstacles implementing it? We would be glad to contribute here.
Thanks in advance.
Pushkar N Kulkarni
“Any sufficiently advanced technology is indistinguishable from magic.” - Arthur Clarke