That solution is correct. Although to be safe you should add -F for fixed (literal) string matching, since regular expressions are not needed (in this context, they can only lead to errors and needless computational overhead).
If you are not seeing any output, then there is something else on the line besides 372701. I suggest taking a closer look at your file (perhaps an octal or hex dump) to see what's there. Perhaps there's a carriage return at the end of the line (not uncommon if the data was handled or served by a Windows machine).