Skip to content

Commit

Permalink
Add a note about the older syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
amartini51 committed May 29, 2024
1 parent 2b398d1 commit 7f1e1bc
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Sources/_StringProcessing/Regex/Core.swift
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,11 @@ public protocol RegexComponent<RegexOutput> {
/// instances using a clear and flexible declarative syntax. Using this
/// style, you can combine, capture, and transform regexes, `RegexBuilder`
/// types, and custom parsers.
///
/// > Note:
/// > Prior to Swift 6.0,
/// > you might need to write `#/myregex/#` instead of `/myregex/`
/// > when you make a regular expression using a literal.
@available(SwiftStdlib 5.7, *)
public struct Regex<Output>: RegexComponent {
let program: Program
Expand Down

0 comments on commit 7f1e1bc

Please sign in to comment.