You will be redirected to our new website in 5 seconds...
If you are not automatically taken to our new web site,
please click on the hyperlink :
build: 309
updated: Jun 17 2008 Logo

freebsd  Support this project

home Home | download | home Contact | SourceForge | File Releases releases | News news |  

Matching strings to wildcards pattern is useful and often needed. Using regular expression may help, but is not top performance solution. Wildcard class matches strings to wildcard patterns, and that does very fast and good! Here are some examples:

Wildcard.match("CfgOptions.class", "*C*g*cl*");		// true
Wildcard.match("CfgOptions.class", "*g*c**s");		// true!
Wildcard.match("CfgOptions.class", "??gOpti*c?ass");	// true
Wildcard.match("CfgOpti*class", "*gOpti\\*class");	// true
Wildcard.match("CfgOptions.class", "C*ti*c?a?*");	// true

More examples can be found in test cases.