On 9/15/2006 1:52:10 PM, Pauli Lindgren wrote:
>On 7/20/2006 9:23:17 PM, Ian Binnie
>wrote:
>>
>>Search("{|*}|*REGEXP",CONFIRM|ERRBREAK)
>>Replace_block("{","(",BB-1,BE,BEGIN|ALL)
>>Replace_block("}",")",BB,BE,BEGIN|ALL)
>>Goto_Pos(BE)
>
>I think you need to first change "("
>into "\(" and ")" into "\)".
>After that, you can change {...} into
>(...).
>
>--
>Pauli
>
If you have "(" or ")" in your Reg Exp (which I didn't) this would be a good idea, and certainly do no harm even if you don't.
As I pointed out in my original post, it was not my intention to fully automate the process, but to change each Reg Exp one at a time to allow inspection.
My first changes (manual) missed a couple.
The real point of the post was to suggest a process to find and highlight the Reg Exp which needed to change.
The macro would then become:-
Search("{|*}|*REGEXP",CONFIRM|ERRBREAK)
Replace_block("(","\(",BB-1,BE,BEGIN|ALL|NOERR)
Replace_block(")","\)",BB-1,BE,BEGIN|ALL|NOERR)
Replace_block("{","(",BB-1,BE,BEGIN|ALL)
Replace_block("}",")",BB,BE,BEGIN|ALL)
Goto_Pos(BE)
|
|