Skip to content

JaDogg/SimpleMatch

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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