lexirex

A tool to generate regexps for matching to a lexical range

License

License

GroupId

GroupId

hu.rxd
ArtifactId

ArtifactId

lexirex
Last Version

Last Version

0.1.1
Release Date

Release Date

Type

Type

jar
Description

Description

lexirex
A tool to generate regexps for matching to a lexical range
Project URL

Project URL

https://github.com/kgyrtkirk/lexirex
Source Code Management

Source Code Management

https://github.com/kgyrtkirk/lexirex

Download lexirex

How to add to project

<!-- https://jarcasting.com/artifacts/hu.rxd/lexirex/ -->
<dependency>
    <groupId>hu.rxd</groupId>
    <artifactId>lexirex</artifactId>
    <version>0.1.1</version>
</dependency>
// https://jarcasting.com/artifacts/hu.rxd/lexirex/
implementation 'hu.rxd:lexirex:0.1.1'
// https://jarcasting.com/artifacts/hu.rxd/lexirex/
implementation ("hu.rxd:lexirex:0.1.1")
'hu.rxd:lexirex:jar:0.1.1'
<dependency org="hu.rxd" name="lexirex" rev="0.1.1">
  <artifact name="lexirex" type="jar" />
</dependency>
@Grapes(
@Grab(group='hu.rxd', module='lexirex', version='0.1.1')
)
libraryDependencies += "hu.rxd" % "lexirex" % "0.1.1"
[hu.rxd/lexirex "0.1.1"]

Dependencies

test (1)

Group / Artifact Type Version
junit : junit jar 4.12

Project Modules

There are no modules declared in this project.

lexirex

lexicographical regexp match generator

this small lib can be used to create a regexp for an arbitrary range:

		Pattern p = RegexRangeBuilder
				.fromExclusive("bar")
				.toInclusive("foo")
				.toPattern();

for the generate pattern by the above code:

  • match: bar1,cat,cairo,foo
  • not match: bar,a,zillion

why is it useful?

I will use it to create regexps which will allow me to use a maven build system to test the code using multiple machines.

license: MIT

Versions

Version
0.1.1