Status: Implemented (Swift 5.7) Upcoming Feature Flag: BareSlashRegexLiterals (implemented in Swift 5.8)
って書いてあってImplementation: apple/swift#42119, apple/swift#58835 Bare slash syntax /.../ available with -enable-bare-slash-regex
-enable-bare-slash-regex
で使えるよ、という話とTo accommodate the cases where source may be broken, /.../ regex literals will be introduced in Swift 6 mode. However, projects may adopt the syntax earlier by passing the compiler flag -enable-bare-slash-regex or the upcoming feature flag BareSlashRegexLiterals. Note this does not affect the extended delimiter syntax #/.../#, which will be usable immediately.