Simple string pattern matcher for Go
Go to file
tidwall 84b6aacbb9 Avoid expensive recursive operations 2021-10-04 11:40:34 -07:00
.github/workflows Create go.yml 2020-11-03 10:47:51 -07:00
LICENSE first commit 2016-08-30 07:19:45 -07:00
README.md Update README.md 2020-11-03 10:48:15 -07:00
go.mod Added go.mod 2020-12-23 04:57:38 -07:00
match.go Avoid expensive recursive operations 2021-10-04 11:40:34 -07:00
match_test.go Avoid expensive recursive operations 2021-10-04 11:40:34 -07:00

README.md

Match

GoDoc

Match is a very simple pattern matcher where '*' matches on any number characters and '?' matches on any one character.

Installing

go get -u github.com/tidwall/match

Example

match.Match("hello", "*llo") 
match.Match("jello", "?ello") 
match.Match("hello", "h*o") 

Contact

Josh Baker @tidwall

License

Redcon source code is available under the MIT License.