If you need any more confirmation, Swift’s NSRegularExpression escapes this 
exact set of characters 
<https://github.com/apple/swift-corelibs-foundation/blob/61340367345ddee8f126a1eb8db319a2925bd3be/CoreFoundation/String.subproj/CFRegularExpression.c#L70>,
 so there isn’t an error in the documentation. (NSRegularExpression in 
Foundation uses the same set, but it doesn’t go through this specific code path 
as far as I can tell.)

Saagar Jha

> On Sep 18, 2019, at 15:06, Rick Mann via Cocoa-dev 
> <cocoa-dev@lists.apple.com> wrote:
> 
> Ah! So it is. Definitely not an error in the docs, assuming 
> NSRegularExpression supports flags.
> 
>> On Sep 18, 2019, at 14:54 , Steve Mills via Cocoa-dev 
>> <cocoa-dev@lists.apple.com <mailto:cocoa-dev@lists.apple.com>> wrote:
>> 
>> On Sep 18, 2019, at 16:50:39, Rick Mann via Cocoa-dev 
>> <cocoa-dev@lists.apple.com> wrote:
>>> 
>>> Yeah, I'm inclined to think it's an error in the docs.
>> 
>> If you look at the input expression in this great site, you'll see 2 /'s as 
>> part of it. They mark the beginning and the end (before flags).
>> 
>> https://regexr.com
>> 
>> --
>> Steve Mills
>> Drummer, Mac geek
>> 
>> _______________________________________________
>> 
>> Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
>> 
>> Please do not post admin requests or moderator comments to the list.
>> Contact the moderators at cocoa-dev-admins(at)lists.apple.com
>> 
>> Help/Unsubscribe/Update your Subscription:
>> https://lists.apple.com/mailman/options/cocoa-dev/rmann%40latencyzero.com 
>> <https://lists.apple.com/mailman/options/cocoa-dev/rmann%40latencyzero.com>
>> 
>> This email sent to rm...@latencyzero.com <mailto:rm...@latencyzero.com>
> 
> 
> -- 
> Rick Mann
> rm...@latencyzero.com <mailto:rm...@latencyzero.com>
> 
> 
> _______________________________________________
> 
> Cocoa-dev mailing list (Cocoa-dev@lists.apple.com 
> <mailto:Cocoa-dev@lists.apple.com>)
> 
> Please do not post admin requests or moderator comments to the list.
> Contact the moderators at cocoa-dev-admins(at)lists.apple.com 
> <http://lists.apple.com/>
> 
> Help/Unsubscribe/Update your Subscription:
> https://lists.apple.com/mailman/options/cocoa-dev/saagar%40saagarjha.com 
> <https://lists.apple.com/mailman/options/cocoa-dev/saagar%40saagarjha.com>
> 
> This email sent to saa...@saagarjha.com <mailto:saa...@saagarjha.com>
_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to