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

Reply via email to