I'm not sure how to phrase the question so I'll just show what I'm trying to do.
I have somewhere in a file:
abcdefg1abcdefg
abcdefg abcdefg
abcdefg abcdefg
I used regex to locate where the "1" is, now I want it to print out aaabbbcccdddeee fffggg1aaabbbcc c...
I made the entire document into an array and I could get it to work if I knew the line number where the 1 is located. But I can't seem to figure that out. Help?
I have somewhere in a file:
abcdefg1abcdefg
abcdefg abcdefg
abcdefg abcdefg
I used regex to locate where the "1" is, now I want it to print out aaabbbcccdddeee fffggg1aaabbbcc c...
I made the entire document into an array and I could get it to work if I knew the line number where the 1 is located. But I can't seem to figure that out. Help?
Comment