Avatar
Avatar
Kishikawa Katsumi
@swift-6.0.3 let regex = /a{1, 3}/ if let match = "aaaa".firstMatch(of: regex) { print(match.0) }
exit status: 1 with <stdin>:1:14: error: consecutive statements on a line must be separated by ';' 1 | let regex = /a{1, 3}/ | `- error: consecutive statements on a line must be separated by ';'
1003 bytes