Firstly - apologies if this is in the wrong section, this is my very first post.
How do I get Notepad++ to search for lines starting with a certain text, then shift a set section up to the end of the previous line? (or if Notepad++ is unable to do this, perhaps a suggestion on a different app that can?)
Could i somehow get it to search for "OMEGA***\" and do the below? (as there will be multiple such lines where the numbers change but format stays the same)
Thanks in Advance!
Replace with: \1
Select "Regular expressions".
Uncheck ". matches newline"
thanks for your response however that didnt seem to work? I just get the error "Replace: no occurrence found."
Just further to the above, i want to shift the "OMEGA\00\001\" (numbers will change but format stays the same) section up a line and at the end so that the next line starts with RM.001.*
I don't understand why it doesn't work with you, because the cchris's search regular expression seems OK, regarding your very first post !
Of course, you must use an Unicode version of Notepad++, since the 6.0 version or above !
With the additional information you gave in your last post, I would say :
SEARCH : \R(OMEGA.*?)RM
REPLACE : \1\r\nRM
with the same options, given by cchris
Just for info :
You will find good documentation, about the new Perl Common Regular Expressions (PCRE), used by N++, since the 6.0 version, at the TWO addresses below :
The FIRST link concerns the syntax of regular expressions in SEARCH
The SECOND link concerns the syntax of regular expressions in REPLACEMENT
Ahhh brilliant, thanks guy038.
This has worked very well!
Sign up for the SourceForge newsletter:
You seem to have CSS turned off.
Please don't fill out this field.