https://github.com/ddo/go-between
get string between 2 strings
https://github.com/ddo/go-between
Last synced: 5 months ago
JSON representation
get string between 2 strings
- Host: GitHub
- URL: https://github.com/ddo/go-between
- Owner: ddo
- License: mit
- Created: 2015-03-05T09:49:26.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2016-01-12T06:13:13.000Z (over 10 years ago)
- Last Synced: 2023-07-10T08:23:59.882Z (almost 3 years ago)
- Language: Go
- Size: 2.93 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# go-between [![Build Status][travis-img]][travis-url] [![Doc][godoc-img]][godoc-url]
> get string between 2 strings
[travis-img]: https://semaphoreci.com/api/v1/projects/59441dc0-ebbd-402f-a746-89519a6aa108/657454/badge.svg
[travis-url]: https://semaphoreci.com/ddo/go-between
[godoc-img]: https://img.shields.io/badge/godoc-Reference-brightgreen.svg?style=flat-square
[godoc-url]: https://godoc.org/github.com/ddo/go-between
## Installation
```bash
go get github.com/ddo/go-between
```
## Usage
```js
import . "between"
Between("hello world", "hel", "ld"); // => "lo wor"
Between("i'm so cool", "m", "oo"); // => " so c"
Between("world hello world", "hel", "ld"); // => "lo wor"
```