I would like to select cities in my attribute table according to their suffix. For example: select only cities which end with "ton". How can I do this?
select by expression with this expression:
if (right ("city", 3) = 'ton', true, false)
city is the fieldname of the string (input) that you want to search - replace it with the name of your field.
Output of the expression is
true if the suffix is
ton, otherwise it is
false - combined with
select by expression it will create a selection of cases that end in -ton.