// Path: src/main/java/org/smallibs/suitcase/cases/Case.java
// public interface Case<T, R> {
// 
//     Optional<R> unapply(T t);
// 
//     interface WithoutCapture<T, R> extends Case<T, Result.WithoutCapture<R>> {
//         static <T, R> WithoutCapture<T, R> adapt(Case<T, Result.WithoutCapture<R>> aCase) {
//             return aCase::unapply;
//         }
//     }
// 
//     interface WithCapture<T, R> extends Case<T, Result.WithCapture<R>> {
//         static <T, R> WithCapture<T, R> adapt(Case<T, Result.WithCapture<R>> aCase) {
//             return aCase::unapply;
//         }
//     }
// 
// }
// 
// Path: src/main/java/org/smallibs/suitcase/cases/Case.java
// interface WithoutCapture<T, R> extends Case<T, Result.WithoutCapture<R>> {
//     static <T, R> WithoutCapture<T, R> adapt(Case<T, Result.WithoutCapture<R>> aCase) {
//         return aCase::unapply;
//     }
// }
// 
// Path: src/main/java/org/smallibs/suitcase/cases/Result.java
// public abstract class Result<R> {
// 
//     public static <R> WithoutCapture<R> success(R term) {
//         return new WithoutCapture<>(term);
//     }
// 
//     public static <C> WithCapture<C> successWithCapture(C result) {
//         return new WithCapture<>(result);
//     }
// 
//     private final R capturedObject;
// 
//     public Result(R capturedObject) {
//         this.capturedObject = capturedObject;
//     }
// 
//     public R resultValue() {
//         return capturedObject;
//     }
// 
//     public static class WithCapture<C> extends Result<C> {
//         public WithCapture(C capturedObject) {
//             super(capturedObject);
//         }
//     }
// 
//     public static class WithoutCapture<T> extends Result<T> {
//         public WithoutCapture(T capturedObject) {
//             super(capturedObject);
//         }
//     }
// 
// }


import org.smallibs.suitcase.cases.Case;
import org.smallibs.suitcase.cases.Case.WithoutCapture;
import org.smallibs.suitcase.cases.Result;
import java.util.ArrayList;
import java.util.List;
import java.util.Optional;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
package org.smallibs.suitcase.cases.lang;



public interface Strings {

    static WithoutCapture<String, List<String>> Regex(String expression) {
        return WithoutCapture.adapt(new RegularExpression(Pattern.compile(expression)));
    }

// Path: src/main/java/org/smallibs/suitcase/cases/Case.java
// public interface Case<T, R> {
// 
//     Optional<R> unapply(T t);
// 
//     interface WithoutCapture<T, R> extends Case<T, Result.WithoutCapture<R>> {
//         static <T, R> WithoutCapture<T, R> adapt(Case<T, Result.WithoutCapture<R>> aCase) {
//             return aCase::unapply;
//         }
//     }
// 
//     interface WithCapture<T, R> extends Case<T, Result.WithCapture<R>> {
//         static <T, R> WithCapture<T, R> adapt(Case<T, Result.WithCapture<R>> aCase) {
//             return aCase::unapply;
//         }
//     }
// 
// }
// 
// Path: src/main/java/org/smallibs/suitcase/cases/Case.java
// interface WithoutCapture<T, R> extends Case<T, Result.WithoutCapture<R>> {
//     static <T, R> WithoutCapture<T, R> adapt(Case<T, Result.WithoutCapture<R>> aCase) {
//         return aCase::unapply;
//     }
// }
// 
// Path: src/main/java/org/smallibs/suitcase/cases/Result.java
// public abstract class Result<R> {
// 
//     public static <R> WithoutCapture<R> success(R term) {
//         return new WithoutCapture<>(term);
//     }
// 
//     public static <C> WithCapture<C> successWithCapture(C result) {
//         return new WithCapture<>(result);
//     }
// 
//     private final R capturedObject;
// 
//     public Result(R capturedObject) {
//         this.capturedObject = capturedObject;
//     }
// 
//     public R resultValue() {
//         return capturedObject;
//     }
// 
//     public static class WithCapture<C> extends Result<C> {
//         public WithCapture(C capturedObject) {
//             super(capturedObject);
//         }
//     }
// 
//     public static class WithoutCapture<T> extends Result<T> {
//         public WithoutCapture(T capturedObject) {
//             super(capturedObject);
//         }
//     }
// 
// }


// Path: src/main/java/org/smallibs/suitcase/cases/lang/Strings.java
import org.smallibs.suitcase.cases.Case;
import org.smallibs.suitcase.cases.Case.WithoutCapture;
import org.smallibs.suitcase.cases.Result;
import java.util.ArrayList;
import java.util.List;
import java.util.Optional;
import java.util.regex.Matcher;
import java.util.regex.Pattern;

package org.smallibs.suitcase.cases.lang;



public interface Strings {

    static WithoutCapture<String, List<String>> Regex(String expression) {
        return WithoutCapture.adapt(new RegularExpression(Pattern.compile(expression)));
    }

    class RegularExpression implements Case<String, Result.WithoutCapture<List<String>>> {