How to find a string within a string?
In a messaging application I am creating, I need to find any instances of '@'. This isn't where I am having trouble though. Once the '@' is found, I need to get the string that comes after it but before any spacing. Example: "@Elitis Hello World". In that example I'd need to find the entire string '@Elitis' and save it into a variable. The problem is that the '@' could be anything: '@Shrimp', '@Jouster', etc.
I know about .search, and .test but would those be of any use in this situation?
Coding is a challenge, get used to it
Always remember to debug
Try the guess & check method
Break it down into simple steps
Last edited by elitis; 04-02-2013 at 04:45 PM..