Skip to content

selectBetween

Select text between the start and end of of a given set of characters.

Arguments

  • str: text that starts and ends with this string will be selected. You can only specify this if between isn't specified
  • between: an object with from and to fields; text that starts with from and ends with to will be selected. You can only specify this if str isn't specified.
  • inclusive: whether to include the characters that start and end the selection (e.g. str or between)