Returns true if the rightmost set of characters of a column of values matches a pattern. The source value can be any data type, and the pattern can be a , regular expression, or a string.

String literal example:


Output: Returns true if last letter of the tweets column value is "?". 



Output: Returns true if the tweets column ends with 1-9 hashtag values. Otherwise, the returned value is false.

Regular expression example:

if(endswith,myNum,/([01][0-9][0-9]|2[0-4][0-9]|25[0-5])/),'myNum - valid','myNum - error')

Output: Returns myNum - valid if the value of the myNum column ends with a value between 0-255. Otherwise, myNum - error is returned.


ArgumentRequired?Data TypeDescription
column_anyYanyName of the column to be applied to the function
patternYstringPattern or literal expressed as a string describing the pattern to which to match.
ignore_caseNstringWhen true, matching is case-insensitive. Default is false.


Name of the column to be searched.

Required?Data TypeExample Value
YesColumn referencemyColumn


, regular expression, or string literal to locate in the values in the specified column.

Required?Data TypeExample Value


When true, matches are case-insensitive. Default is false

NOTE: This argument is not required. By default, matches are case-sensitive.


Required?Data TypeExample Value
NoString value'false'

Example - STARTSWITH and ENDSWITH Functions