I have a string that contains a header with a length of the following field.
Example:
fillerfillerCA20 abcdefghijklmnopqrst CA5 zyxwvfillerfiller
I need to find the two values: abcdefghijklmnopqrst and zyxwv
I was going to use a backreference to get the length for the quantifier:
(?i)ca(?<length>\d+?)\x20.{\k<length>}\x20?
but apparently, using a backreference in a quantifier is not supported.
How can I accomplish this?