in reply to Re: Re: Re: Re: 'one-liner' help
in thread 'one-liner' help
As it happens, yes. Note that m#</div></div># will not match
because there's (vertical) whitespace between the two tags. You need \s* in your regex at points where whitespace is expected to appear between tags. And you need to slurp the entire file into memory first, since doing this line-by-line won't work.</div> </div>
I've not tried it, but perlrun notes that -00 will force Perl into "paragraph" mode. Given your HTML, that might be sufficient. Otherwise, investigate the other options in perlrun.
|
|---|