Skip to content

ipcjk/regexRange

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 

Repository files navigation

regexRange

This package will generate regular expressions for [a...b] ranges. Please see the test-cases for a howto.

regex := regexRange.GetRegex(196608, 197631)
positiveMatch, err := regexp.Compile(regex)
if err != nil {
	t.Error("Cant compile regex")
}

if !positiveMatch.MatchString("_196922") {
	t.Error("Regex did not match _196922!")
} 

About

generate regular expressions for [a...b] ranges

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages