Avoiding segmentation fault 11 in Xcode 7 with StringLiteralConvertible

I read a great article on StringLiteralConvertible over at NetGuru but when I tried to implement the RegularExpression, Xcode 7 (and 7.1b3) Playgrounds continually crashed. It took a lot of experimenting (and some hints from NSHipster) but I finally got it to work. My original (crashing) example looked like: struct RegularExpression { let pattern: String… Continue reading Avoiding segmentation fault 11 in Xcode 7 with StringLiteralConvertible