<font face="Default Sans Serif,Verdana,Arial,Helvetica,sans-serif" size="2"><div style="font-family: Verdana, Arial, Helvetica, sans-serif;">Hello, </div><div style="font-family: Verdana, Arial, Helvetica, sans-serif;"><br></div><div style="font-family: Verdana, Arial, Helvetica, sans-serif;">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.</div><div style="font-family: Verdana, Arial, Helvetica, sans-serif;"><br></div><div><p style="font-family: Menlo; font-size: 14px; line-height: normal;"><b>Welcome to Swift version 3.0-dev (LLVM f95d47afa7, Clang f66c5bb67b, Swift b745691a38). Type :help for assistance.</b></p><p style="font-family: Menlo; font-size: 14px; line-height: normal;"><b><font color="#a9a9a9"> 1> </font>import Foundation</b></p><p style="font-family: Menlo; font-size: 14px; line-height: normal;"><b><font color="#a9a9a9"> 2> </font>NSRegularExpression.escapedPatternForString("a+b")</b></p><p style="font-family: Menlo; font-size: 14px; line-height: normal;"><b>fatal error: escapedPatternForString is not yet implemented: file Foundation/NSRegularExpression.swift, line 84</b></p><font face="Default Sans Serif,Verdana,Arial,Helvetica,sans-serif" size="2"><div class="socmaildefaultfont" dir="ltr" style="font-size: 10.5pt;"><div class="socmaildefaultfont" dir="ltr" style="font-size: 10.5pt;"><div class="socmaildefaultfont" dir="ltr" style="font-size: 10.5pt;"><div dir="ltr" style="font-family: Arial;"><br></div><div dir="ltr"><font face="Sans Serif, Verdana, Arial, Helvetica, sans-serif">However, I see that this method is available on Swift 2.2-dev for OS X. </font></div><div dir="ltr"><font face="Sans Serif, Verdana, Arial, Helvetica, sans-serif"><br></font></div><div dir="ltr"><font face="Sans Serif, Verdana, Arial, Helvetica, sans-serif">Could someone please tell me the rationale behind having it unimplemented for Linux? Were there any Linux-specific obstacles implementing it? We </font><span style="font-family: 'Sans Serif', Verdana, Arial, Helvetica, sans-serif; font-size: 10.5pt;">would be glad to contribute here.</span></div><div dir="ltr"><font face="Sans Serif, Verdana, Arial, Helvetica, sans-serif"><br></font></div><div dir="ltr"><font face="Sans Serif, Verdana, Arial, Helvetica, sans-serif">Thanks in advance.</font></div><div dir="ltr" style="font-family: Arial;"><br><span style="font-family:georgia,serif;"><span style="font-size: 1.143em;">Pushkar N Kulkarni</span></span></div>
<div dir="ltr" style="font-family: Arial;"><span style="font-family:georgia,serif;"><span style="font-size: 1.143em;">IBM Runtimes</span></span></div>
<div dir="ltr" style="font-family: Arial;"> </div>
<div dir="ltr" style="font-family: Arial;"> </div>
<div dir="ltr" style="font-family: Arial;"><em><span style="font-family:georgia,serif;"><span style="font-size: 0.857em;">"Any sufficiently advanced technology is indistinguishable from magic." - Arthur Clarke</span></span></em></div></div></div></div></font></div></font><BR>