1) Iterate over each element of your file vector
2) Parse the string to extract only the integer - you know the symbols that indicate the start and end of the bits you don't want, so it should be easy then the find the bit you do want.
3) Store that integer in the NoComm vector
You may be able to do something fancy with boost transform iterators, if you want to be all fancy and modern, but that's the old-school way of doing it :)