Reply to topic  [ 5 posts ] 
PowerFind OR 
Author Message

Joined: 2005-01-20 09:20:38
Posts: 5
Location: Delmar, CA
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


2007-08-28 16:43:55
Profile WWW

Joined: 2006-06-29 07:56:30
Posts: 81
Location: Hudson River Valley, NY
Post 
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


2007-08-28 18:17:52
Profile
Official Nisus Person
User avatar

Joined: 2002-07-11 17:14:10
Posts: 4251
Location: San Diego, CA
Post 
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?


2007-08-28 23:23:14
Profile WWW

Joined: 2006-06-29 07:56:30
Posts: 81
Location: Hudson River Valley, NY
Post 
Much simpler, Martin! I've forgotten how powerful powerfind is.

Steve


2007-08-29 07:15:48
Profile

Joined: 2005-01-20 09:20:38
Posts: 5
Location: Delmar, CA
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


2007-08-31 16:41:02
Profile WWW
Display posts from previous:  Sort by  
Reply to topic   [ 5 posts ] 

Who is online

Users browsing this forum: Bing [Bot] and 6 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group
Designed by ST Software