Skip to content

Latest commit

 

History

8 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

RegexSolver Java API Client

This repository contains the source code of the Java library for RegexSolver API.

RegexSolver is a powerful regular expression manipulation toolkit, that gives you the power to manipulate regex as if they were sets.

Installation

Requirements

  • Java >=11

Maven

<dependency>
    <groupId>com.regexsolver.api</groupId>
    <artifactId>RegexSolver</artifactId>
    <version>1.0.1</version>
</dependency>

Gradle

implementation "com.regexsolver.api:RegexSolver:1.0.1"

Usage

In order to use the library you need to generate an API Token on our Developer Console.

public class Main {
    public static void main(String[] args) throws IOException, ApiError {
        RegexSolver.initialize(/* Your API token here -> */"");

        Term term1 = Term.Regex.of("(abc|de|fg){2,}");
        Term term2 = Term.Regex.of("de.*");
        Term term3 = Term.Regex.of(".*abc");

        Term term4 = Term.Regex.of(".+(abc|de).+");

        Term result = term1.intersection(term2, term3)
                .subtraction(term4);

        System.out.println(result);
    }
}

About

RegexSolver is a powerful toolkit for building, combining, and analyzing regular expressions.

Topics

Resources

Stars

1 star

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages