Skip to content

kasei/SwiftRegex

Folders and files

NameName
Last commit message
Last commit date

Latest commit

68c5783 · Jan 11, 2017

History

12 Commits
Jan 11, 2017
Jan 11, 2017
Jan 11, 2017
Jun 8, 2014
Jun 8, 2014

Repository files navigation

SwiftRegex

Perl-like regex =~ operator for Swift

This package implements a =~ string infix operator for use in testing regular expressions and retrieving sequences of matching sub-strings.

The regular expression matching is performed using NSRegularExpression.

Example

for match in "Hello World" =~ "\\w+" {
    println("matched: \(match)")
}

Prints:

matched: Hello
matched: World

About

Perl-like regex =~ operator for Swift

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages