Hello
I'm no regex/grep expert, and having a bit of a problem getting grep to read data from stdin.
This works:
Code:
grep -Pzo "(?s)(?<=<title>\n)(.*)(?=</title>)" input.html
This prints nothing, although the Internet says that grep reads stdin unless told to read from a file:
Code:
wget -qO- 'http://www.acme.com/index.html' -so - | grep -Pzo "(?s)(?<=<title>)(.*)(?=</title>)"
Any idea why?
FWIW, it's GNU grep 2.12 running on Debian.
Thank you.