I am attempting to use the grep inside find/replace in a text edit program to separate numbers out from a single line. So I wouldn't be using a prompt, just the find/replace function inside said program. I've been able to use it to pull out pretty much everything I have needed from various documents, but this is somehow stumping me. An example line would be something like:
Typ:01 Seq:0002 Spl:03
I want a single line code that can pull out the first number set, the second or the third. Results would leave behind:
01
or
0002
or
03
I would like to be able to change the grep easily based on need to pull out any of the three numbers and remove everything else in the string. I was thinking I could take one command and alter it as needed for the other two numbers, but ultimately it is three lines of code.