Is there any good, simple Java Grep Library? I\'m not opposed to native code, or scripting, and I\'ll do it, but for my purposes, throughput is not a huge deal, and it would
Unix4j also implements a (pure java) grep command: http://www.unix4j.org
Unix4j.fromStrings("1:A", "2:B", "3:AB", "4:AC", "5:ABC").toFile("myFile.txt"); Unix4j.fromFile("myFile.txt").grep("AB").toStdOut(); >>> 3:AB 5:ABC
Disclaimer: I am one of the contributors to the unix4j project.