Query on Overpass

I want to find on Overpass turbo all elements that contain the word “teodosio”.
How should I do?


In the OSM wiki there is the sub page http://wiki.openstreetmap.org/wiki/Overpass_turbo/Wizard

where you can find definitions about logical search parameters, regex searches and wildcards.

What have you tried so far in detail?
Tell us your query strings and the results, and why those results are good or why they fail.

I have a problem with query strings because I don’t know which one to use.
I want to find every elements (node, way and polygon) that contain the name: “teodosio”

You can use the query http://overpass-turbo.eu/s/g9g

(which finds nodes, ways and relations. Polygons are just closed ways and are thereby included in the answer)

It uses ~, which, according to the docs, means

node[“name”~“Foo”]; /* finds anything that contains the substring “Foo” */