Skip to content

Latest commit

 

History

History
53 lines (41 loc) · 1.06 KB

bytes_ends-with.md

File metadata and controls

53 lines (41 loc) · 1.06 KB
title categories version bytes usage feature
bytes ends-with
bytes
0.94.0
Check if bytes ends with a pattern.
Check if bytes ends with a pattern.
default

bytes ends-with for bytes

Check if bytes ends with a pattern.

Signature

> bytes ends-with {flags} (pattern) ...rest

Parameters

  • pattern: The pattern to match.
  • ...rest: For a data structure input, check if bytes at the given cell paths end with the pattern.

Input/output types:

input output
binary bool
record record
table table

Examples

Checks if binary ends with 0x[AA]

> 0x[1F FF AA AA] | bytes ends-with 0x[AA]
true

Checks if binary ends with 0x[FF AA AA]

> 0x[1F FF AA AA] | bytes ends-with 0x[FF AA AA]
true

Checks if binary ends with 0x[11]

> 0x[1F FF AA AA] | bytes ends-with 0x[11]
false