Skip to content

Instantly share code, notes, and snippets.

View JulianAlonso's full-sized avatar
💭
Listening some awesome music

Julian JulianAlonso

💭
Listening some awesome music
View GitHub Profile
@JulianAlonso
JulianAlonso / Regex&Matcher-Playground.swift
Last active March 7, 2023 06:22
Mapping URL (Deep linking) on iOS.
import Foundation
extension String {
//Know if self is only composed by numbers
var isNumber: Bool {
return !self.isEmpty && CharacterSet.decimalDigits.isSuperset(of: CharacterSet(charactersIn: self))
}
}
//Struct to check Regular Expresions