in reply to How to substitute something from only between two specified charecters

It looks to me like you've got:

  1. "cds:"
  2. not-slashes up to a slash (strain)
  3. not-slashes up to a slash (location)
  4. not-slashes, a slash then not-whitespace up to a whitespace (ID)
  5. 4 digits, slash, 2 digits, slash, 2 digits (date)
  6. the rest of the line (???)
Since the field separations are sometimes slashes, and sometimes whitespace, a regex with 4 or 5 captures in it sounds like the way to go.