in reply to find partially matching lines in a file

Just omit the ^ in the regex.

Update: And if you want it generally work, you should pipe the items of the regex through quotemeta before building the regex.

Replies are listed 'Best First'.
Re^2: find partially matching lines in a file
by sdatta (Initiate) on Oct 07, 2008 at 20:31 UTC
    Thanks!