Sequence pattern matching library
Java
Switch branches/tags
Nothing to show
Clone or download
Latest commit eaaeb3b Nov 25, 2016
Permalink
Failed to load latest commit information.
src fix for #2 and #3 Nov 25, 2016
.gitignore initial commit Mar 22, 2015
.travis.yml Update .travis.yml Oct 13, 2015
README.md Update README.md Oct 13, 2015
pom.xml added coverage report plugins Oct 13, 2015

README.md

Build Status MavenCentral Coverage Status

rseq: Pattern matching made easier

rseq is a Regular-Expression-like language for operating on sequences (Lists) of any Java objects

Pattern pattern = Pattern.create(oneLetterRegexp.captureAs("ID"),
                                 eq("is"), eq("the").or(eq("a")).optional(), 
                                 anything.captureAs("DEF"));

It is available on maven central:

<dependency>
  <groupId>com.alexeygrigorev</groupId>
  <artifactId>rseq</artifactId>
  <version>0.0.1</version>
</dependency>

Features

  • Variable and group capturing, optional, the Kneele star
  • Deals with Java Beans out of the box
  • Extensible interface for writing your own matchers

See a tutorial for more details