Menu

Save regular expression as macro ???

2006-03-12
2012-11-13
  • Nobody/Anonymous

    Hello

    Is it possible to put regular expressions into macro ?

    I tried to save search&replace (with regular extenssions) as macro...but it doesnt work :(

    How to save it ?
    I need to run search&replace jobs on many files every day... so i wanted to save it as macro :(

    Help me please..

    Radi

     
    • DisgruntledGoat

      DisgruntledGoat - 2007-09-17

      Hi,
      just wondering if this is possible yet? I've just tried to record one and it won't let me save.

      I want to create a macro (and assign a keyboard shortcut) so that I can select text and do things like Ctrl+B, Ctrl+I to wrap the selection in <b>...</b> or <i>...</i> etc. Is this possible at all?

       
      • Greg Bullock

        Greg Bullock - 2007-09-19

        Record the macros

        <Ctrl-X> "<b></b>" <Left><Left><Left><Left> <Ctrl-V>

        and

        <Ctrl-X> "<i></i>" <Left><Left><Left><Left> <Ctrl-V>

        where the text in quotes represents individual keystrokes, e.g., <, b, >, <, /, b, >, etc.  When you're finished, save the macro with a name and assign it to your preferred shortcut.

        Regards.
        Greg

         
    • Don HO

      Don HO - 2006-03-13

      Unfortunately, you can not (yet).

      Don

       
MongoDB Logo MongoDB