Not sure why I'm not getting this. I've been searching and testing my command for a couple hours and I'm not getting anywhere.
The text is:
<?xml version="1.0" encoding="UTF-8" standalone="yes"?><result expand="changes,testResults,metadata,logEntries,plan,vcsRevisions,artifacts,comments,labels,jiraIssues" key="EP-ED-JOB1-174" state="Failed" lifeCycleState="Finished" number="174" ....
And I just want to pull out the ' state="Failed" ' part, it could also be ' state="Successful" '
I've tried a million variations of this:
sed '/state=".*"/p' htmlResponse.txt
But paren's, escape slashes etc seem to match the entire chunk of text. What's wrong with my regex?