Consider a list of tags: elephants,apples,guns,weather etc
and the user enters tags in a textbox separated by pipes, like: apples|weather|tomatoes
The user is able to enter their own tags in the textbox. I'd like to be able to suggest tags per tag entry, so, if the textbox contained: apples|wea I'd like to be able to suggest weather. This means that I need to be able to evaluate the text as if the | is the start of a new textbox.
What would be the best way to achieve this? I'm thinking a new property that's a callback function that modifies the text before it's evaluated for matches?