Thanks Jim.

works brilliantly

Keith

On Thu, 17 Feb 2005 4:51:14 +0000
<[EMAIL PROTECTED]> wrote:

> 
> > 
> > From: Keith Bates <[EMAIL PROTECTED]>
> > Date: 2005/02/17 Thu AM 04:24:27 GMT
> > To: Open Office List <[email protected]>
> > Subject: [users] Regex Question
> > 
> > Hi,
> > 
> > I want to take a magicpoint file which looks like this:
> > 
> > %page
> > %nodefault
> > %tfont "arial.ttf"
> > %  bimage "../Photos/treetops.jpg" 1630x1220
> > %center, size 7, fore "white"
> > 
> > ALL ABOUT YOU
> > 
> > More text etc..
> > 
> > 
> > I would like to strip out all lines beginning with a % and leave all
> > other lines intact.
> > 
> > Can someone please tell me how to do this with regular expressions?
> > 
> Edit -> Find and Replace
> Tick the "Regular Expressions" box
> Search field: %.* (That's "percent, period, asterisk")
> Replace field: (blank)
> Find All
> Replace All
> You'll have blank paragraphs where the % text used to be. To eliminate
> them:
> Search Field: ^$
> Replace field: (blank)
> Find All
> Replace All
> done.
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 


-- 
God bless you,


Keith Bates
4 Mooloobar St
Narrabri NSW 2390

Phone: 02 67924890
Fax: 02 67925418

www.devoted.to/newlife

If you don't have a reason to live

JESUS IS THE ANSWER!

Ask him into your life today...
He really does make a difference.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to