Post

Replies

Boosts

Views

Activity

Comment on Regex expression in .split generates cannot convert type
The parser has no problems recognizing the Regex compact notation in a playground that I created to reproduce the problem. I declare the Regex on a separate line to make sure. let transaction = "DEBIT     03/05/2022    Doug's Dugout Dogs         $33.27" let r = /\s{2,}|\t/ let fragments = transaction.split(separator: r) The build error is related to line 3. String seems to be missing a variant of split(separator:) that accepts a Regex. Missing in the doc pages as well.
Topic: Programming Languages SubTopic: Swift Tags:
Jun ’22
Comment on Failed retrieving request UUID for upload
Yes, that fixed it. Thanks @swillits
Topic: App & System Services SubTopic: Core OS Tags:
Replies
Boosts
Views
Activity
Jun ’21
Comment on Xcode 13.2 - Internal error : Missing Package Description Module
The copy of Xcode at https://developer.apple.com/download/release/ does work without problems.
Replies
Boosts
Views
Activity
Dec ’21
Comment on Regex expression in .split generates cannot convert type
The parser has no problems recognizing the Regex compact notation in a playground that I created to reproduce the problem. I declare the Regex on a separate line to make sure. let transaction = "DEBIT     03/05/2022    Doug's Dugout Dogs         $33.27" let r = /\s{2,}|\t/ let fragments = transaction.split(separator: r) The build error is related to line 3. String seems to be missing a variant of split(separator:) that accepts a Regex. Missing in the doc pages as well.
Topic: Programming Languages SubTopic: Swift Tags:
Replies
Boosts
Views
Activity
Jun ’22
Comment on Regex expression in .split generates cannot convert type
The extended delimiter notation can be used as a workaround for the second problem: let r = #/\s{2,}|\t/#
Topic: Programming Languages SubTopic: Swift Tags:
Replies
Boosts
Views
Activity
Jun ’22