I know this is quite simple for you to code but for me as a beginner I need some examples or guides.
I have a text file which has this content:
random line
random line
random line
random line
random line
random line
random line
random27061-1-0256487952random words random words
random line
I need to find this: 27061-1-0256487952 in that file and write it on the other file, is there a way I can do this? The numbers is not always in that length, sometimes it's like this: 2 7 0 6 1 - 1 - 0 2 5 6 4 8 7 9 5 2 or this: 27 06 1-1-02564 8795 2. Is there a way? Thanks in advance?