Board index » jbuilder » searching textfiles (simple and multiple)

searching textfiles (simple and multiple)


2003-09-16 04:19:15 AM
jbuilder12
HI,
is there any library for searching text files for strings? Or something
similar for large database fields?
I need it with simple search, multiple search and with some wildcards or
reg-exps in both cases.
thanx in advance
Ralph
 
 

Re:searching textfiles (simple and multiple)

On 9/15/2003 at 4:19:15 PM, Ralph Steins wrote:
Quote
is there any library for searching text files for strings?
Or something similar for large database fields?
I need it with simple search, multiple search and with some
wildcards or reg-exps in both cases.
The java.util.regex package contains regular expression handling. This
works on Strings so you will have to load the text into memory. For
really large files, you would need to manage the loading of segments
and searching yourself.
There may be code available to do this already. Try searching in the
usual places (jars.com, java.sun.com, ...).
--
Regards,
John McGrath [TeamB]
---------------------------------------------------
Before sending me e-mail, please read:
www.JPMcGrath.net/newsgroups/e-mail.html