Quickly find all lines matching a string or regular expression