I&#039;m trying to use regular expressions to match variable length fields in a record. The fields are laid out with their length in the first byte and the data following immediately after the length. I was hoping to do it by matching the length (two hex characters) then using a backreference to the length in a quantifier. (If the string is 0808313436382e30000e113431 and the regex is ^(?&#039;length&#039;[0-9a-fA-F]{2})([0-9a-fA-F]{k&#060;length&#062;}) The length capture is 08 and I was hoping that ([0-9a-fA-F]{k&#060;length&#062;} would match the next eight bytes. Unfortunately, there isn&#039;t a match.<BR><BR>Would anyone have a suggestion for doing this?<BR><BR>I&#039;m using .NET regular expressions in C# (Winforms)<BR><BR>Thanks<BR><BR>Mike