Question

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?

Était-ce utile?

La solution

@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.

Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top