Frage

I need some help. I am trying to shorten a full product name from Amazon. For example:

Samsung Galaxy S II Epic Touch 4G Android Phone (Sprint)

Galaxy S II

I want to do this programatically. Any ideas?

War es hilfreich?

Lösung

@bdares points out what seems to be the easiest way to handle this -- make a big list of all of the product names, then use some sort of text search to find the product name your string contains.

I asked Given a list of search terms, how can I tell which ones my string contains? since I can't think of a good way to do this at the moment.

EDIT: And I got a pretty good answer.

Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit StackOverflow
scroll top