in reply to How to extract text between two tags?
You should use an xml parser, however, after seeing it even does not have a </body> tag, here is a oneliner I use often:
cat foo.html |perl -ne 'print if /Paper ID/ .. /\/SELECT/'
curl -s http://forum.vingrad.ru/act-Print/client/printer/f-5/t-326992. +html |perl -pe 's{<br />}{\n}g' |perl -ne 'print if /Paper ID/ .. /\/ +SELECT/'
I am surprised the browser can handle and display that webpage...
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: How to extract text between two tags?
by Anonymous Monk on May 28, 2015 at 22:31 UTC | |
by bitingduck (Deacon) on May 28, 2015 at 22:46 UTC | |
by Anonymous Monk on May 28, 2015 at 23:19 UTC |