Forums Register Login

RegEx Error in Getting jobstatus in curl call

+Pie Number of slices to send: Send
I am writing a curl command to get some job details about a job. The job detials have different variation of status depending on the state of the job
When the job is still executing it appears this way

I am trying to capture jobstatus in a a following different outputs


I am new with RegEx and here is what I have for the 2nd expression:
^\{(.*)\s{1}"failureCount":\s{1}([0-9]*)\,\s{1}"jobStatus":\s{1}([^"]*)\,\s{1}"startTime":\s{1}([^"]*)\,\s{1}"stopTime":\s{1}([^"]*)\,\s{1}"successCount":\s{1}([0-9]*)\}$
and it does not seem to match

I wanted to do validate with RegEx and then pass it to a grep to look for the value jobstatus



Power corrupts. Absolute power xxxxxxxxxxxxxxxx is kinda neat.
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com


reply
reply
This thread has been viewed 510 times.
Similar Threads
Separate GUI Code from Back End Code
Xerces Parser, issue with "/" in data body during XMLEntityScanner.load
Calculate Working hours
Spring - Jasypt Integration XML Config
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 29, 2024 09:44:28.