STARTS_WITH and ENDS_WITH functions


Use STARTS_WITH and ENDS_WITH to check if a text string starts or ends with another text string.

Check if an AWS ARN points to an S3 resource:

STARTS_WITH(aws_arn, "arn:aws:s3")

Check if a file has a Python extension:

ENDS_WITH(filename, ".py")