Skip to content

Instantly share code, notes, and snippets.

View SintraWorks's full-sized avatar

António Nunes SintraWorks

View GitHub Profile
import Foundation
/// Provides NSRegularExpression pattern matching against strings
/// in `switch` expressions
///
/// Regular expressions are expensive to construct. The built-in
/// class cache stores already-constructed pattern instances using
/// the pattern string (coerced to `NSString`) as its keys. Modify
/// matching options at the `match(_, options:)` call-site if needed.
///