I have a table
containing text files
with the following structure:
[ID] [Text]
The text column contains the whole file as a string.
Sample:
{1}{line1 \n line2 \n line3 \n ...}
{2}{line1 \n line2 \n line3 \n ...}
{3}{line1 \n line2 \n line3 \n ...}
I want to get the files that contain a certain pattern but it would be much more efficient if I could get my results in lines.
That is, if I am looking for dog
. Getting:
{3}{line 10}{...xxx dog xxx...}
{3}{line 20}{...xxx dog xxx...}
{5}{line 11}{...xxx dog xxx...}
How can I do this?