This content has been marked as final. Show 3 replies
Thanks. I downloaded that xtra and checked it out. I'm not sure if it's just me, but I found the help file that came with it to be very poor, in that it seems to be more complicated that it has to be. I looked through it and couldn't find how to use the xtra to search through mutiple files. All I saw was how to search through a single file (unless I missed it, which is quite possible). I would use a loop, but I'm not sure how I'd do that in this case, because the names of the files I want to search have no pattern to them.
You can use Director's command getNthFileNameInFolder() to mke a list of
all the files in a given folder, then use pRegEx to search through the
text of each one.
A much easier way would be to use BuddyAPI. It has a command called
baFileList() which will give you the names of all the files in a folder,
then you can use pRegEx or another xtra to search through each one. The
same folks who brought us BuddyAPI also make budFile which can do the
text search in a much easier way than pRegEx (though it will likely be a
bit slower). Though it is terribly confusing and hard to use if you are
not familiar with regular expressions, it is by far the fastest method
of searching text.