I'm looking to grab a unique job ID from the middle of a url for a list of URL's. Here's the first URL.
https://cnhs.taleo.net/careersection/1/jobdetail.ftl?job=210001RQ&tz=GMT-07%3A00&tzname=
I originally wrote:
int startIdx = args.Content.IndexOf("?job=") + 5;
int endIdx = args.Content.IndexOf("RQ", startIdx);
return args.Content.Substring(startIdx, endIdx - startIdx);
However, the proceeding URL's don't follow the format with 'RQ' following the job key. How do I grab that 6 digit job key from within a list of URL's with differing formatting after the job key? For example from the above URL, I want to grab 210001.