Issue 87024 - inconsistent regular expression behavior with end of line character
Summary: inconsistent regular expression behavior with end of line character
Alias: None
Product: Writer
Classification: Application
Component: editing (show other issues)
Version: OOo 2.4 RC4
Hardware: All All
: P4 Trivial (vote)
Target Milestone: ---
Assignee: AOO issues mailing list
QA Contact:
Depends on:
Reported: 2008-03-14 09:31 UTC by lohner
Modified: 2013-08-07 14:44 UTC (History)
3 users (show)

See Also:
Issue Type: DEFECT
Latest Confirmation in: ---
Developer Difficulty: ---


Note You need to log in before you can comment on or make changes to this issue.
Description lohner 2008-03-14 09:31:35 UTC
- '$' matches the end of paragraph mark, ',_$' matches only the ',_'  This is
- same for '[a-zA-Z]$' obviously
- a replace for a matching '$' consolidates two lines (expected), but not the
ones where somethign in front of the end of line is matched.
- the last end of paragraph is not matched - is this considered an 'end of
document' ?

Use the following example text:
This is a line with a period.
This is a line with a comma and a space before EOL, 
which continues on the next line.
This is a line without punctuation
continued on the next line.
Here come two empty lines.

This is the end.
Comment 1 lohner 2008-03-14 09:43:54 UTC
- '$^' matches only the blank lines themselves; it should match any end of line.
- '^$' matches the blank lines, this is correct.

Is it even possible to match multiple lines?
Comment 2 michael.ruess 2008-03-14 10:52:22 UTC
Reassigned to SBA.
Comment 3 stefan.baltzer 2008-03-25 17:39:08 UTC
SBA: Confirmed. Reassigned to AMA.
Comment 4 stefan.baltzer 2008-09-19 16:33:40 UTC
SBA: See also issue 29829 about the Paragraph end and newline inconsistency.