<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 12pt;
font-family:Calibri
}
--></style></head>
<body class='hmmessage'><div dir='ltr'>No, I don't think it is a bug. <br>And end-of-paragraph mark is not a simple glyph; it has properties and attributes associated with it (e.g. a paragraph tag, the formatting associated with that paragraph tag, and any overrides to the standard formatting for the tag). <br>You can find an EOP as if it were a simple glyph because they do have a common fundamental property (i.e. denoting the end of a paragraph). <br>But you cannot effectively insert a new EOP in a replace string because there is no way to associate any of the other properties with the new mark. <br>Finding an EOP and replacing it with itself, on the other hand, is a valid operation because the found mark has a full complement of paragraph properties.<br><br>-Fred Ridder<br><br><div>> From: frame@daube.ch<br>> To: framers@lists.frameusers.com<br>> Date: Mon, 7 Jul 2014 15:48:17 +0200<br>> Subject: FM12: Quirks in Find/replace using RegEx (Perl)<br>> <br>> Friends of FramMaker, please judge.<br>> <br>> I want to find incorrectly ended paragraphs (missing punctuation).<br>> For example the following 4 lines are paragraphs, the first 2 correct,<br>> the next two incorrect:<br>> <br>> This is the first paragraph!<br>> And this is the second one.<br>> And here a third<br>> And a fourth one:<br>> <br>> RegEx Find/Replace with these settings:<br>> Find:  ([^\.!?])\n<br>> Repl:  $1.\n<br>> Result: find is correct, replacement is n instead of paragraph end<br>> With repl = $1.\r        replacement is a forced newline; correct, but not wanted.<br>> <br>> Find:  ([^\.!?])(\n)<br>> Repl:  $1.$2<br>> This creates a correct replacement!<br>> <br>> IMHO the behaviour of not honoring \n as an 'end of paragraph' for the replacement is <br>> a bug. Do You agree?<br>> <br>> Klaus Daube<br></div>                                    </div></body>
</html>