Skip to content

Improve PatternExtensions #2

@franzbecker

Description

@franzbecker

Collect and implement ideas of more useful methods

Todo

  • boolean matchesAll(CharSequence, Pattern...)
  • Optional<String> substring(String, Pattern)

Maybe

  • Look into Lambdas (either Xtend or Java8)
    • <T> T ifMatches(Pattern, Function<String, T>)
    • void ifMatches(Pattern, Procedure<String>)
    • Maybe pass in the matcher for the calculation of the lambdas?
  • Utility methods for capturing groups

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions