PowerFind OR

Everything related to our flagship word processor.
Post Reply
nelsonbyrne
Posts: 5
Joined: 2005-01-20 09:20:38
Location: Delmar, CA
Contact:

PowerFind OR

Post by nelsonbyrne » 2007-08-28 16:43:55

How do I use OR in PF?

I want to find uses of
o OR a followed by r
That is, I want to find all
…or…
and also all
…ar…


Using OR in PF I find all
o
and also all
ar


Regards,

Nelson Byrne

ssampler
Posts: 85
Joined: 2006-06-29 07:56:30
Location: Hudson River Valley, NY

Post by ssampler » 2007-08-28 18:17:52

Not sure about powerfind, but in powerfind pro it is simple:

(o|a)r


the "|" is the "or" and the () group, so that the translation is "o" or "a" followed by "r"

-Steve

User avatar
martin
Official Nisus Person
Posts: 4367
Joined: 2002-07-11 17:14:10
Location: San Diego, CA
Contact:

Post by martin » 2007-08-28 23:23:14

You could use a PowerFind capture to do the grouping Steve suggested, but really nothing so fancy is required here. Why not just use:

or(OR)ar

Where "(OR)" represents the PowerFind bubble for OR. Does that make sense?

ssampler
Posts: 85
Joined: 2006-06-29 07:56:30
Location: Hudson River Valley, NY

Post by ssampler » 2007-08-29 07:15:48

Much simpler, Martin! I've forgotten how powerful powerfind is.

Steve

nelsonbyrne
Posts: 5
Joined: 2005-01-20 09:20:38
Location: Delmar, CA
Contact:

PowerFind OR

Post by nelsonbyrne » 2007-08-31 16:41:02

Thanks for the help, especially the capture.

Here's what I'd like to find:

(Line Separator U+2028
OR
Line feed U+000A)
followed by any characters in italics up to a Line feed


And on finding them I'd like to replace the initial character by a line feed and then assign a style to the italic characters and to their terminating line feed.

I'm working with a source that flags certain paragraphs in italic, but sometimes uses line separators and sometimes uses line feed.

Thanks in advance,

Nelson

Post Reply