On Saturday 12 May 2007 15:23, Brian Barker wrote:
[...]
> 1. Finding three-digit numbers alone in a paragraph.  Use:
>
> ^[:digit:]{3}$
>
> Here:
> o  ^ means the match has to be at the start of a paragraph,
> o  [:digit:] matches any decimal digit,
> o  {3} means there must be exactly 3 copies of "digit", and
> o  $ means the match must also end a paragraph.

That worked, I'll comment on usability below.

> (Note that this won't match a paragraph with three digits followed by
> a space or spaces.)

Understood.

> 2. Finding a paragraph mark.  I think this depends on why you want to
> do this.  The ^ and $ devices could be useful here.  Indeed, ^$ will
> find an empty paragraph, if that is what you need.  So you could use
> this to find or delete empty paragraphs.

Yes, I have been doing this with success for sometime. Finding $ as a 
regular expression and replacing with an empty box is solving my issue 
most of the time. It can't be used automatically on the whole document 
because it screws up the paragraphs.

> 3.  Usability?  No comment.  That's in the eye of the beholder!  (I'm
> finding it gets easier as I learn by researching your problems!)

What is the source of your research, the 'Regular Expressions' page of 
the help file? I have studied that page so long and hard I nearly have 
it by rote! It lacks useage examples.

It is significant you have used the phrase "eye of the beholder". My 
background is mechanical engineering, designing and building machines 
plus by Howard Gardner's 'Multiple Intelligences' measure - strongly 
visual/spatial. Kword runs rings around OOo in the usability stakes, 
for instance look on \d to find a digit (easily found under the Edit 
button which is greyed out until the Regular Expression checkbox is 
high-lighted) and intuitively \d\d\d to find a three figure number. 
Kword is developing fast but has to mature on other scores compared to 
OOo.
http://www.infed.org/thinkers/gardner.htm
http://www.hyperorg.com/blogger/mtarchive/a_rubiks_cube_solution_that_fo.html
http://club.mandriva.com/xwiki/bin/view/chromium/PsychologicalGUIPreferences
http://ftp.sun.ac.za/ftp/iso-images/mezzo/MezzoGreypaper.pdf
http://www.koffice.org/kword/

> I trust this helps.

Very much so Brian, I'm pleased you have adopted me. I have a few more 
curly questions for you.  8-))

Cheers... Rex

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

Reply via email to