Skip to content

Latest commit

 

History

History
13 lines (9 loc) · 303 Bytes

README.md

File metadata and controls

13 lines (9 loc) · 303 Bytes

Regex Go

Use the NFA to implement which inspire by Russ Cox

Usage

reg := NewRegexGo("a*b") //Create new regex pattern 
result := reg.CheckIsMatch("aaaab") // return boolean type to check the string is match the pattern or not

Reference

https://swtch.com/~rsc/regexp/regexp1.html