/parse-author

Primary LanguageGoMIT LicenseMIT

parse-author

Go Reference Test Status codecov Go Report Card

Golang port of author-regex, and provide an author parser

Install

go get -u github.com/ImSingee/parse-author

Usage

package main

import (
	"fmt"
	"github.com/ImSingee/parse-author"
)

func main() {
	fmt.Println(pauthor.RegexStr)

	re := pauthor.Regex()
	fmt.Println(re.FindAllStringSubmatch(`Jon Schlinkert <jon.schlinkert@sellside.com> (https://github.com/jonschlinkert)`, -1))
}