Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / December 2006

Tip: Looking for answers? Try searching our database.

hi... how to search files in a dir based on specific pattern

Thread view: 
mahesh - 06 Dec 2006 05:00 GMT
Hi,

   how can we search files in adirectory based on specific pattern.
  i hav searched the regex api but i did not find any method in
Matcher class or pattern class
which will return a string array by searching the whole directory for
specific pattern
So plz u know any solution for this the tell me
Thanks in advance.

regards
mahesh
Julian Treadwell - 06 Dec 2006 05:34 GMT
> Hi,
>
[quoted text clipped - 8 lines]
> regards
> mahesh

I have written a Java utility program to do this, Java 1.4 with a small
Swing interface.  It was written for my own use so you might find it
somewhat quirky but I'd be happy to email it to you if you want to use
it or mod it.
Knute Johnson - 06 Dec 2006 05:49 GMT
> Hi,
>
[quoted text clipped - 8 lines]
> regards
> mahesh

Did you look at the code I replied to your previous post?

Signature

Knute Johnson
email s/nospam/knute/

Julian Treadwell - 06 Dec 2006 06:01 GMT
>> Hi,
>>
[quoted text clipped - 10 lines]
>
> Did you look at the code I replied to your previous post?

I wish I'd looked at it before I wrote my utility program - I did it the
hard way, capturing the output from a "dir" command and checking each
file line by line.

That's what I like about Java, there's always a better way to do things,
you can always improve yourself :)
Knute Johnson - 06 Dec 2006 17:52 GMT
>>> Hi,
>>>
[quoted text clipped - 17 lines]
> That's what I like about Java, there's always a better way to do things,
> you can always improve yourself :)

I've been writing java code since 1.0 and I learn new stuff every day.
I really like to prowl the news groups and see other folks solutions to
problems.

Signature

Knute Johnson
email s/nospam/knute/



Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.