something about regex
Asked on 2025-08-11
1 search
It seems you're interested in regex and its applications as discussed in Apple's WWDC sessions. Here are some relevant insights from the sessions:
-
Foundation Models Framework: In the session titled "Deep dive into the Foundation Models framework," regex is used to define the structure of a string to generate. This is particularly useful when you want to constrain a name to a set of prefixes or use the regex builder syntax. This approach allows for more structured and specific outputs from models. You can learn more about this in the session Deep dive into the Foundation Models framework (13:22).
-
Xcode: In the session "What’s new in Xcode," regex is used for parsing location coordinates from a string. The session demonstrates how regular expression match results have custom visualizations in Xcode's canvas, which can help identify and fix issues, such as capturing a minus sign incorrectly. This is discussed in the session What’s new in Xcode (06:05).
-
Swift: The session "What’s new in Swift" mentions that the predicate API, now available on all platforms in Swift 6, has gained support for regular expressions. This is part of the new direction for the Swift Foundation, emphasizing community interaction and new implementations. You can explore this in the session What’s new in Swift (13:02).
These sessions provide a comprehensive look at how regex is being utilized across different frameworks and tools in the Apple ecosystem.

Deep dive into the Foundation Models framework
Level up with the Foundation Models framework. Learn how guided generation works under the hood, and use guides, regexes, and generation schemas to get custom structured responses. We’ll show you how to use tool calling to let the model autonomously access external information and perform actions, for a personalized experience. To get the most out of this video, we recommend first watching “Meet the Foundation Models framework”.

What’s new in Xcode
Discover the latest productivity and performance advancements in Xcode 26. Learn how to leverage large language models in your development workflow. Explore editing and debugging enhancements, improved performance and testing tools, and Swift Build - the open-source build system engine used by Xcode.

What’s new in Swift
Join us for an update on Swift. We’ll briefly go through a history of Swift over the past decade, and show you how the community has grown through workgroups, expanded the package ecosystem, and increased platform support. We’ll introduce you to a new language mode that achieves data-race safety by default, and a language subset that lets you run Swift on highly constrained systems. We’ll also explore some language updates including noncopyable types, typed throws, and improved C++ interoperability.