Page 1 of 1

PowerFind OR

Posted: 2007-08-28 16:43:55
by nelsonbyrne
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

Posted: 2007-08-28 18:17:52
by ssampler
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

Posted: 2007-08-28 23:23:14
by martin
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?

Posted: 2007-08-29 07:15:48
by ssampler
Much simpler, Martin! I've forgotten how powerful powerfind is.

Steve

PowerFind OR

Posted: 2007-08-31 16:41:02
by nelsonbyrne
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