substr

Available inall subroutines.


This is a companion discussion topic for the original entry at https://developer.fastly.com/reference/vcl/functions/strings/substr

There is an error in the example for a negative offset & length values.

For the following arguments substr("abcdefg", -4, -3). The returned string value is "d" not "de" as stated in this document.