Skip to content

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

Notifications You must be signed in to change notification settings

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!")
} 

Releases

No releases published

Packages

No packages published

Languages