README.md 1.11 KB
Newer Older
Drew's avatar
Drew committed
1
[![Anarchy Tools compatible](https://img.shields.io/badge/Anarchy%20Tools-compatible-4BC51D.svg?style=flat)](http://anarchytools.org)
Drew's avatar
Drew committed
2
![License:apache](https://img.shields.io/hexpm/l/plug.svg)
Drew's avatar
Drew committed
3 4 5
![Swift:3](https://img.shields.io/badge/Swift-3-blue.svg)
![Platform:macOS](https://img.shields.io/badge/Platform-macOS-red.svg)
![Platform:Linux](https://img.shields.io/badge/Platform-Linux-red.svg)
Drew's avatar
Drew committed
6 7 8

# StandBack

Drew's avatar
Drew committed
9
![StandBack](art/standback-small.png)
Drew's avatar
Drew committed
10 11 12 13

StandBack is a regular expression engine implementing the `egrep` (POSIX-extended) language.  It is cross-platform and has no dependencies.
While `egrep` is a less popular language than PCRE, it is fully capable for basic programming tasks, and our API is *much* easier to use than Foundation's.

Drew's avatar
Drew committed
14 15
Here's a sample to get started. For more information, see our [documentation](http://standback-docs.sealedabstract.com).

Drew's avatar
Drew committed
16 17 18 19
# Mailing list

We use [discuss.sa](http://discuss.sealedabstract.com/c/code-sa/stand-back)

Drew's avatar
Drew committed
20 21 22 23 24

```swift
let r = try! Regex(pattern: "class[[:space:]]+([[:alnum:]]+)[[:space:]]*:CarolineTest[[:space:]]*\\{")
print(try! r.match("prefix stuff class Foo:CarolineTest {"))
```