I'm unsure if this is possible, but I need to move all instances of the word
USA to column
130 in a txt document using Notepad++.
I didn't "think" this would require any regex so I posted here, however I'm beginning to think otherwise.
I primarily need to know how to move just
USA but knowing how to move it including everything after would be great so I don't have to come back and ask again. I tend to file these things away mentally or in a file to reference.
<titleid> <titlekey> <title> <random-number-of-spaces> USA System Application <titleid> <titlekey> <title> <random-number-of-spaces> USA System Application
Operating under the assumption the final result has the U from USA landing on column 130. I'd like to know how to move it by itself to that point, as well as it and everything beyond it if possible.
I have been able to scrape up some expressions to move forward by x number of tabs or preceding spaces, but nothing to move backwards. This is made complicated by the fact the end of the previous word, the
<title> is of differing lengths and some instances of
USA need to move forward, some backward, all need to end on the same column. Thus none fit what I am trying to accomplish.
\t will handle moving forward by the number of tabs set in language preferences.
$1 will move forward by the number of spaces preceding the
$1 but does not aid in alignment due to the zig-zag pattern of the current state of the document.