Check if Text $1.00 / 1,000 calls

String ends with

What this tool does

This tool checks if one piece of text appears at the very end of another piece of text. You provide two inputs, and the platform tells you whether the second input is found at the end of the first.

The comparison is case-sensitive. This means 'A' and 'a' are treated as different characters. If the letter case does not match exactly, the tool will report that the text does not end with the specified sequence.

Common uses

  • Verifying that a file name has the correct extension, such as checking if 'document' ends with '.pdf'.
  • Checking if a sentence or phrase finishes with a specific word or punctuation mark.
  • Validating that a code or identifier ends with the expected suffix.

Input data

Parameter Required Example Description
text1 Yes test Enter the main text that you want to check. For example, 'document'.
text2 Yes t Enter the specific character or sequence of characters that should appear at the end of the first text. For example, '.pdf'.

Output data

Field Description
result A yes/no indicator showing whether the second text is found at the end of the first text. Returns 'true' if it matches, or 'false' if it does not.