πŸ” Regular expressions in Swift aren't just string patterns β€” they're first-class types, checked at compile time, and can be written with a readable builder syntax – it's truly a thing of beauty. https://www.hackingwithswift.com/swift/5.7/regexes
Regular expressions – available from Swift 5.7

Regular expressions example code from Swift 5.7

Hacking with Swift

@twostraws it is still painful that you need compiler settings to enable it. Every time I want to use them I need to dig up the special setting.

I can’t even remember what it is. Needs a google every time, so I tend to not use it. Tragic really.

@Migueldeicaza Do you mean bare slash regexes? I thought they were on by default these days.