Categories: MSDN / DotNet / Java / Scripts / Linux / PHP Ask - La ask - La Answer

Wildcard search program in java--urgent

:WAVE:
Hi all, Can you help me to find a Complete wildcard search program in java.
A big help
exaple searches
apple
*pple
ap*
app?e
?ppl?
app*e
app?l*
[210 byte] By [Ruwan] at [2007-11-11 8:50:46]
# 1 Re: Wildcard search program in java--urgent
what is the basis of your data? do you want to search within filenames/directories, a database, plain text (like grep)?
for wildcards u can use the pattern and matcher classes provided by java. they support 100% regular expressions. even more complex ones than you show above.
graviton at 2007-11-11 22:34:12 >