Is there a way to search a vector and return all occurrences of a string. I have read a text file into a vector and want to search throught the vector. For example I am searching the vector for all occurrences with the word ssh. It may be ssh, or it may be ssh email@example.com. I am not sure if this requires a regexp or some other step to return all occurrences of ssh.
Thanks for your time,