Skip to content

lum-ai/regextools

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

54 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

regextools

To import the regex builder type

import ai.lum.regextools.RegexBuilder

and to import the odin pattern builder

import ai.lum.regextools.OdinPatternBuilder

To use the regex builder (or odin pattern builder)

val b = new RegexBuilder
b.add("foobar")
b.add("fooxar")
b.add("foozap")
println(b.mkPattern)

You can visualize a diagram for the pattern by printing the dot representation and plot it with graphviz (or http://www.webgraphviz.com/)

println(b.mkDot)

If you want to import this, please type

sbt publishLocal

and in your build.sbt add the dependency

libraryDependencies += "ai.lum" %% "regextools" % "0.1.0-SNAPSHOT"

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages