G. Roderick Singleton wrote:
On Sun, 2005-09-04 at 19:22 -0400, Ron Miller wrote:
Paul_B wrote:
On Sun, 04 Sep 2005 16:49:48 -0400, Ron Miller wrote:
I have been trying to make Open Office 1.1.4 and now beta 2 of OO 2 find
numerals in plain text. A block of text in paragraph format will
contain single or double digit numbers i.e.
1then text, 2more text...14additional text etc.
I need to remove the numbers without changing the text. I have tried
various combinations of [1-0], [:0-1:] without success. Any clues will
be most welcome.
Thanks Ron Miller in Baltimore
You can search for numbers with the string [0-9]{1,2}. The first
term represents a range. The second allows one to two instances
of the first term - in this case, that is one or two digits.
The Replacement string should be left blank.
p.
I may be more obtuse than others, but I can't get this to work. Pasting
a copy of your exact string in the Find box consistently produces a
"Search Key not found." error message. The same result is received
whether I'm finding, finding all, replacing, or replacing all.
Thanks for further light.
Do you have regular expressions enabled (checked) when you do this? I
recall getting similar results when I forget.
Found it!! Use [:digit:]{1,2} to find any digit. [1-0] was only
finding 1 & 0--now I can write my macro to strip them out. Thanks for
the help and encouragement
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]