Created
August 11, 2022 19:51
-
-
Save rmirabelli/567f1eeeee245cd252c37085a9523a8f to your computer and use it in GitHub Desktop.
A simple regex using compile-time checking
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let regex2 = /a(?<remainder>.*?)\ / | |
let match2 = baseString.firstMatch(of: regex2) | |
print(match2?.remainder) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment