PDA

View Full Version : [SOLVED:] Re: Start of line and end of line problem



elmnas
07-08-2014, 06:59 AM
11911

macropod
07-08-2014, 03:02 PM
You can do that with an ordinary Find: ^l^l. No VBA required.

elmnas
07-09-2014, 12:04 AM
You can do that with an ordinary Find: ^l^l. No VBA required.

doesn't work that way


the script will just find
a linebreak on a empty line
and a linebreak on a empty line

macropod
07-09-2014, 12:36 AM
It does work for the examples you posted. What you haven't defined is what precedes the first line break.

elmnas
07-09-2014, 12:44 AM
It does work for the examples you posted. What you haven't defined is what precedes the first line break.


well it find the linebreaks,
but I want the linebreaks have to be on empty lines
with no text before neither after.

macropod
07-09-2014, 01:17 AM
You cannot have line breaks with nothing before them unless they're the very first things that exist in the document. Except for that one possibility, there must always be other characters (e.g. letters, numbers, paragraph breaks, other line breaks, etc.). You need to define what those other characters are.

elmnas
07-09-2014, 01:23 AM
well if you see on my pictures I have something before
hej hej hej(linebreak)
(linebreak)

if you know regex there is possible to use the command

start of line "linebreak"
end of line "linebreak"

you know?

macropod
07-09-2014, 02:08 AM
Please read my previous post and take time to understand it. Posting the same pictures over and over when they don't adequately show the context in which the line breaks are occurring doesn't change anything. If you want to post something, post an actual document showing the line breaks as they occur in it (not in another picture).

elmnas
07-09-2014, 02:14 AM
sorry,

well I could grab the linebreaks by using ^l^l^$

^$ (end of line)
but still struggling with start of line.
and I understood your answer.

how should you solve this then?

macropod
07-09-2014, 02:23 AM
The solution depends on what precedes the linebreaks, not what follows them. You seem determined not to say what precedes them or to post a document showing it. Unless you do that, you are just wasting time.

elmnas
07-09-2014, 06:41 AM
its different text before so its impossible to know
11921

macropod
07-09-2014, 04:21 PM
Please read posts 6, 8 and 10 AGAIN. Posting images is wasting time. I'm not going to waste more of my time on someone who won't cooperate.