I'm using curl to get the html from a site then I just need a specific string which is between 'standards.xml?revision=' and '&'. I'm using sed to do this but I can't seem to get the regex right and needed some help.
curl website.com | sed -r 's|.*standards\.xml\?revision=([0-9]+).*|\1|'
The output I'm getting is the full html--any help would be appreciated.