https://github.com/harishkataria/patterns
Simplifying pattern building in Swift
https://github.com/harishkataria/patterns
pattern-matching regular-expression search swift
Last synced: 8 months ago
JSON representation
Simplifying pattern building in Swift
- Host: GitHub
- URL: https://github.com/harishkataria/patterns
- Owner: HarishKataria
- License: mit
- Created: 2018-03-06T06:03:34.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2018-04-13T03:40:39.000Z (about 8 years ago)
- Last Synced: 2025-10-09T22:18:42.862Z (8 months ago)
- Topics: pattern-matching, regular-expression, search, swift
- Language: Swift
- Size: 529 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# **Patterns**
##### Simplifying pattern building in Swift
---
**Patterns** is a framework for building regular-expression-like matchers with native Swift data types.
- [Features](#features)
- [Usage](#usage)
- [Requirements](#requirements)
- [Installation](#installation)
- [Documentation](#documentation)
- [License](#license)
## Features
- [x] Enables developers to work with Swift-friendly data types to construct and test patterns.
- [x] Empowers developers to build readable Patterns using descriptive elements instead of raw string format.
- [x] Gives developers the capability to use Boolean operators to combine simple patterns to form complex ones.
- [x] Packages commonly used pattern types, including regular expressions, glob expressions, prefix matcher, suffice matcher, and everyone's favorite XCode's open-quickly command filter.
- [x] Provides reusable base functionality (via protocol extensions) which can be leveraged to build your own custom pattern types.
- [x] Facilitates describing complex patterns in easy-to-read steps
## Usage
See [sample code examples](https://github.com/harishkataria/Patterns/blob/master/Documentation/Usage.md).
## Requirements
- iOS 8.0+ / macOS 10.10+ / tvOS 9+ / watchOS 2+
- Xcode 9+
- Swift 4+
## Installation
See [install guide](https://github.com/harishkataria/Patterns/blob/master/Documentation/Install.md).
## Documentation
See Jazzy-generated [docs](https://harishkataria.github.io/Patterns/).
## License
Patterns is released under the MIT license. See [LICENSE](https://github.com/harishkataria/Patterns/blob/master/LICENSE) for details.