I am familiar with regular expressions from Emacs and grep on UNIX systems.
After pasting a EULA into a Write document, I wanted to replace the spaces
after subclause letters with tabs, e.g.
a) Text of subclause, blah blah blah
with
a) -> Text of subcluase, blah blah blah // Where -> is the tab
character made visible.
The Search expression
"[a-z]\) "
finds the letters of the subclauses okay. But with Emacs, the parentheses
in the search expression
"([a-z]\)) "
reference each target as it is found and allow you to copy it into the
replace expression with a numbered reference, e.g.
"\1\t"
So if the search expression finds "z) ", the "\1" in the replace expression
should insert "z)" and the "\t" inserts a tab character. But "\1" is
inserted as a literal so that searching with "([a-z]\)) " and replacing
with "\1\t" gives you
1 -> Text of subclause, blah blah blah
not
z)->Text of subclause, blah blah blah
as expected.
So, can you use references in the replace expression at all, and if so,
what is the syntax? The on-line help is conspicuously silent.
Regards,
Hedley
--
Hedley Finger
Technical Communications Support Specialist
MYOB Australia <http://www.myob.com/>
P.O. box 371 Blackburn VIC 3130 Australia
12 Wesley Court Tally Ho Business Park East Burwood VIC 3151
Australia
<mailto:hedleyDOTfingerATmyobDOTcom>
Tel. +61 3 9222 9992 x 7421, Mob. (cell) +61 412 461 558
(c) MYOB Technology Pty Ltd 2005
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]