I am looking to find matches in a string, perform an action on the match, and then replace the original match.
For example finding @yahoo in a string, looking on matching everything after the ampersand to the first white space. Of course there can be multiple values to match on in a single string so would be a for each match.
I'm thinking regex but am not sure on matching on everything after the ampersand to the first white space (the regex expression for this?). Or any other easier way of doing this?
@is called Commercial "at" sign, not an ampersand (which looks like this:&).