Harold Fuchs wrote:
On 30/04/2009 19:49, Brian Barker wrote:
At 12:45 30/04/2009 -0500, Clifton Liles wrote:
I am trying to do a 'find and replace' in OO writer, 3.0.0 OOO300m9 Intel XP. What I want is to replace '(19' with 'tab(19'. When I use '\t' it simply inserts the '\' 't' in the text, no tab. I also tried '/t' and 'ctrl-i' nothing works.

As has already been suggested, you need to tick the "Regular expressions" box hidden behind the More Options button in order for \t to be interpreted as you need. But that creates a separate problem: you will find that you can no longer appear to search for "(19". That is because parentheses are used in regular expressions to define a reference. Since you do not want this, you will have to "escape" the open parenthesis character by preceding it by a backslash: then it will be interpreted as just the character it is.

Search for \(19 and replace with: \t(19 or, more simply, \t& .

I trust this helps.

Brian Barker

Hmmm. You are right but I don't think you should be ;-) The fact that there is no closing parenthesis *should* mean that the opening parenthesis is not special i.e that it doesn't define the start of a reference. However, I have to admit that Notepad++ behaves the same way as Writer so at least Writer is in good company.

Well spotted and thanks.

It worked!

Well I had to ESC the first '(' in the find but not the '(' in the replace. [Find "\(19" replace with "\t(19"] Thanks, I've been doing it by hand (click & tab) and its getting real old. Thanks
Cliff

--
mailto: [email protected]
Clifton R. Liles    "Software to the Stars"    [email protected]
Pearland, TX 77581   [email protected]  [email protected]
- Speaking for myself!  Standard disclaimer applies. -
This address may *not* be used for unsolicited mailings.
Failure is not an option. It comes bundled with your Microsoft products.



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to