Issue 105750 - Help: regex for 2 terms in 2 paragraphs
Summary: Help: regex for 2 terms in 2 paragraphs
Status: CLOSED FIXED
Alias: None
Product: documentation
Classification: Unclassified
Component: Online help (show other issues)
Version: OOO300m9
Hardware: PC All
: P3 Trivial (vote)
Target Milestone: OOo 3.3
Assignee: mwaller
QA Contact: issues@documentation
URL:
Keywords: oooqa
Depends on:
Blocks:
 
Reported: 2009-10-09 03:26 UTC by nicklevinson
Modified: 2017-05-20 10:28 UTC (History)
2 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description nicklevinson 2009-10-09 03:26:45 UTC
In OOo 3.0.0 OOO300m9 (Build 9358), with Fedora 10 Linux, in Writer > Help menu
> OpenOffice.org Help > Index tab > regular expressions > searching > Display
button > note:

It says, "You can only search for regular expressions within the same paragraph.
That is, you cannot search for one term in a paragraph and a different term in
the next paragraph."

This is unclear.

If you mean searching is limited to 1 paragraph, just say "You can only search
for regular expressions within the one paragraph that has the insertion point or
the highlight." and drop the 2d sentence.

If you mean that 2 regexes can't be run in different paragraphs at once, drop
the 1st sentence and just say "You cannot search for one term in one paragraph
and a different term in another paragraph."

Thank you.

-- 
Nick
Comment 1 eric.savary 2009-10-09 04:00:23 UTC
@ufi: please have a look.
Comment 2 Uwe Fischer 2009-10-09 09:01:53 UTC
We don't mean either one of your suggestions.
A search with or without regex is not bound to the insertion point or text
cursor position (except that the search starts there). 
The limitation to the one paragraph only span of search expressions cannot be
bypassed by highlighting or selecting multiple paragraphs.
There is no way to run 2 regexes at the same time.
What we possibly mean is that any regex search will stop at paragraph borders. 
Should we better use an example?
If you search for "border.*better" in the two paragraphs above this one, the
search will not succeed because of the paragraph end inside the matching result.
Remove the paragraph end, and the search succeeds.
How to find the right words?
Comment 3 Rainer Bielefeld 2009-10-09 19:19:22 UTC
I checked with "Ooo Dev 3.2.0 multilingual version English UI WIN XP: [DEV300m60
(Build 9425)]" and found the reported Text, and I don't understand it, too. And
no idea for a better description.
Comment 4 nicklevinson 2009-10-10 17:31:47 UTC
I propose the following as the full note (at the pushpin icon), provided this
fits OOo's specifications and performance for regex searches:

A search using a regular expression will work only within one paragraph. To
search using a regular expression in more than one paragraph, do a separate
search in each paragraph. Titles, subparagraphs, and other units of text may be
considered as separate paragraphs, each requiring a separate search when a
regular expression is being used.

I don't think you need an example to illustrate that a regex works only in one
paragraph.

If that note is too long, the first sentence should be sufficient. However, if
room is available, I recommend keeping all three sentences, because the help
file is intended for users who don't know much about regexes and need clarity.
Comment 5 Uwe Fischer 2009-10-12 09:27:08 UTC
Changed file swriter/guide/search_regexp.xhp in CWS hcshared24
Comment 6 Uwe Fischer 2009-10-28 11:35:27 UTC
Pls verify in CWS hcshared24
Index "wildcards", last note on page
Comment 7 mwaller 2009-11-03 10:03:23 UTC
verified in hcshared24