Is there grep for an Array of AbstractStrings?  See code below


# A. Read a file into memory (nLines pre-determined)

fID=open(fName)

iLine=0;

rLines=Array(ASCIIString,nLines);

while !eof(fID)

  iLine+=1

  rLines[iLine]=readline(fID)

end


# B. Find all strings in rLines with "parameter"

???? Is something like this possible?

indices=grep(rLines,r"parameter")



Reply via email to