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
and also all

Using OR in PF I find all
and also all


Nelson Byrne

Posted: 2007-08-28 18:17:52
by ssampler
Not sure about powerfind, but in powerfind pro it is simple:


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


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:


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.


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
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,