Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/kasei/SwiftRegex
Perl-like regex =~ operator for Swift
https://github.com/kasei/SwiftRegex
Last synced: about 1 month ago
JSON representation
Perl-like regex =~ operator for Swift
- Host: GitHub
- URL: https://github.com/kasei/SwiftRegex
- Owner: kasei
- License: other
- Created: 2014-06-08T07:55:29.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2017-01-11T18:02:48.000Z (about 8 years ago)
- Last Synced: 2024-12-01T04:54:32.268Z (about 1 month ago)
- Language: Swift
- Size: 11.7 KB
- Stars: 112
- Watchers: 8
- Forks: 12
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
- awesome-ios - SwiftRegex - Perl-like Regex =~ operator for Swift. (Regex / React-Like)
- awesome-ios-star - SwiftRegex - Perl-like Regex =~ operator for Swift. (Regex / React-Like)
README
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
```