8. A system comprising: one or more data processing apparatus; and a data store storing instructions that, when executed by the one or more data processing apparatus, cause the one or more data processing apparatus to perform operations comprising: identifying a user device, including determining a device identifier corresponding to the user device; accessing, for the device identifier, visitation data that includes one or more resource locators that each specify a resource that was previously provided to the user device corresponding to the device identifier; identifying, based on one of the resource locators included in the visitation data, a content feed including content items that are eligible to be provided to the user device in response to one or more resource locators in the visitation data matching one or more character strings specified by a publisher associated with the content feed; identifying, from the one or more character strings, a matching character string that matches a particular resource locator from the one or more resource locators included in the visitation data; selecting a content item from the content items that are eligible to be provided to the user device based on the match between the particular resource locator and the matching character string; and providing, to the user device, data that causes presentation of the selected content item.
8. A system comprising: one or more data processing apparatus; and a data store storing instructions that, when executed by the one or more data processing apparatus, cause the one or more data processing apparatus to perform operations comprising: identifying a user device, including determining a device identifier corresponding to the user device; accessing, for the device identifier, visitation data that includes one or more resource locators that each specify a resource that was previously provided to the user device corresponding to the device identifier; identifying, based on one of the resource locators included in the visitation data, a content feed including content items that are eligible to be provided to the user device in response to one or more resource locators in the visitation data matching one or more character strings specified by a publisher associated with the content feed; identifying, from the one or more character strings, a matching character string that matches a particular resource locator from the one or more resource locators included in the visitation data; selecting a content item from the content items that are eligible to be provided to the user device based on the match between the particular resource locator and the matching character string; and providing, to the user device, data that causes presentation of the selected content item. 12. The system of claim 8 , wherein each of the one or more character strings is a regular expression that specifies a set of matching character strings, and wherein at least one of the regular expressions includes a uniform resource locator and a metacharacter.