Skip to content

Instantly share code, notes, and snippets.

Avatar
💭
Listening some awesome music

Julian JulianAlonso

💭
Listening some awesome music
View GitHub Profile
@JulianAlonso
JulianAlonso / Regex&Matcher-Playground.swift
Last active Jun 26, 2017
Mapping URL (Deep linking) on iOS.
View Regex&Matcher-Playground.swift
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
You can’t perform that action at this time.