Matches - Swift regex helper library
My sixth Swift Package Manager module, Matches is a wrapper on NSRegularExpression that makes simple regexes easier.
import Matches let match1 = "string1\nstring2".firstMatching("(^s)") // => "string1" let matches = "string1\nstring2".everyMatch("(^s.*)") // => [["string1"], ["string2"]]
Previous modules:
https://github.com/coryalder/Later - Easy semaphores
https://github.com/coryalder/Ape - HTTP request helper
https://github.com/coryalder/LevenshteinSwift - Distance between words
https://github.com/coryalder/SwiftLeftpad - my reply to the npm left-pad controversy
https://github.com/coryalder/ConditionalSet - 7 loc, set dictionary keys using optionals















