Latest 0.1.0
Homepage https://github.com/timbodeit/RegexNamedCaptureGroups
License MIT
Platforms ios 9.0
Dependencies Regex, UnicodeICUHeaderModule
Authors

CI Status
Version
License
Platform

A small wrapper around Regex that adds support for named capture groups.

Usage

let result = "John is 30 years old.".grep("(?<name>[A-z]*) is (?<age>[0-9]*) years old.")

result.namedCapture("name") // "John"
result.namedCapture("age")  // "30"

For full usage see Regex documentation.

Requirements

RegexNamedCaptureGroups requires iOS 9 or higher. Older versions of iOS don’t
support named capture groups in the regex syntax accepted by
NSRegularExpression.

Installation

RegexNamedCaptureGroups is available through CocoaPods. To install
it, simply add the following line to your Podfile:

pod "RegexNamedCaptureGroups"

Author

Tim Bodeit, [email protected]

License

RegexNamedCaptureGroups is available under the MIT license. See the LICENSE file for more info.

Latest podspec

{
    "name": "RegexNamedCaptureGroups",
    "version": "0.1.0",
    "summary": "Regex with named capture groups for iOS",
    "description": "A small wrapper around Regex that adds support for named capture groups.",
    "homepage": "https://github.com/timbodeit/RegexNamedCaptureGroups",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "Tim Bodeit": "[email protected]"
    },
    "source": {
        "git": "https://github.com/timbodeit/RegexNamedCaptureGroups.git",
        "tag": "0.1.0"
    },
    "platforms": {
        "ios": "9.0"
    },
    "source_files": "RegexNamedCaptureGroups/Classes/**/*",
    "dependencies": {
        "Regex": [],
        "UnicodeICUHeaderModule": []
    }
}

Pin It on Pinterest

Share This