P
pippolino
i want to write a clipper which scans a file for each occurence of a regexp
like /<div>.*<\/div>/ and put it on a scalar concatenating it with .= or simply
prints it out... It seems simple but the only ways i know to access file is line
by line or char by char so i have to scan first for <div> and use another regexp
to look for the </div> which is on another line... is there a way to do it with
a single regexp, or, i don't think it will be a good solutions, scan the whole
file at the same time?!
thanks everyone who wants to help me!
like /<div>.*<\/div>/ and put it on a scalar concatenating it with .= or simply
prints it out... It seems simple but the only ways i know to access file is line
by line or char by char so i have to scan first for <div> and use another regexp
to look for the </div> which is on another line... is there a way to do it with
a single regexp, or, i don't think it will be a good solutions, scan the whole
file at the same time?!
thanks everyone who wants to help me!