String ends with
What this tool does
This tool checks whether one piece of text appears at the end of another. It is useful for validating file names, URL paths, or identifying tags. The tool returns a simple yes or no answer based on the match.
When to use it
- Checking if a file name ends with a specific extension like '.txt'
- Verifying if a website address finishes with '/home'
- Confirming if a product code ends with a specific suffix
- Validating that a username includes a required domain tag at the end
What to expect
You will receive a clear yes or no answer indicating if the first text block ends with the second text block.
Limitations
- The check is case sensitive; 'File' and 'file' are different
- The second text must match exactly at the very end
- Special characters are treated as literal text
When it fails
- The input is empty or malformed.
- The service is temporarily unavailable.
Good to know
- Ensure the ending text does not have extra spaces unless you intend to match them
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. |