Avatar
Avatar
Kishikawa Katsumi
@swift-6.0.3 do { let r = #/ (\d{4})\/ # 年 (\d{2})\/ # 月 (\d{2}) # 日 /# if let m = try r.firstMatch(in: "Birth date: 1980/10/28") { print(m.0) } } catch { print(error) }
1980/10/28