Skip to content

Latest commit

 

History

History
19 lines (14 loc) · 423 Bytes

README.md

File metadata and controls

19 lines (14 loc) · 423 Bytes

SwiftRegularExpression

Match regular expressions against strings without holding a ceremony.

"Something" =~ "Some[a-z]{4,7}" // true
        
"Ayaka" =~ "A*" // true
"Kayakayak" =~ "ayaka" // true
"Kayakayak" =~ "^ayaka$" // false
        
"Mickey" =~ "M..k" // true
"Mark" =~ "M..k" // true
"Ayaka" =~ "M..k" // false
        
"Mickey" =~ "M..k.." // true
"Mark" =~ "M..k.." // false