Skip to content

Latest commit

 

History

History
22 lines (17 loc) · 653 Bytes

README.md

File metadata and controls

22 lines (17 loc) · 653 Bytes

SimpleMatch

Simple Pattern Matcher for Java

Build Status

What does it do?

  1. Matches a ? for any single character
  2. Matches an * for one or more characters

How to use ?

  1. SimpleMatch.match("a*","abcd"); or
  2. SimpleMatch m = new SimpleMatch("a*", "abcdefg"); and call m.match();

More info

  1. It will either return true or false or throw an IllegalArgumentException
  2. IllegalArgumentException occurs if any parameter is null or length==0
  3. Always false on pattern length > string length