πŸ” 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
(If you watch any of my streams you'll know I am somewhat obsessed with regular expressions. It STILL blows my mind that regex literals are fully parsed by the compiler.)

@twostraws if you are obsessed with regular expressions, then don't forget about the very fun online game https://regexcrossword.com

🍸😺

Regex Crossword

A crossword puzzle game using regular expressions. Earn achievements completing puzzle challenges. Easy tutorials for people new to regular expressions.

Regex Crossword
@martinicat I have spent such a long time playing that πŸ˜‚
@twostraws I figured as much, I thought the others might enjoy hearing about it too🍸😹

@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.