Jump to content
Macro Express Forums

Juan-Pablo

Members
  • Posts

    3
  • Joined

  • Last visited

Posts posted by Juan-Pablo

  1. On 7/24/2010 at 2:00 PM, lemming said:

    Hi Terry, I've been testing GNU utilities for Win32 (unxutils.sourceforge.net), which includes classic Unix utilities like Grep, Sed, and Awk. These 3 support regular expressions, and I got them to work with Macro Express Pro.

     

    For your text problem, I wrote an MEP script which calls Sed.

     

    The MEP script is only 6 lines long - all it does is set a working folder, launch Sed, and report the results.

     

    The Sed script which is doing the actual heavy lifting is only 3 lines long! (excluding comments)

     

    All thanks to regex 😉

     

    QUICK START

     

    1. Download Run Sed.mex and Run Sed.zip from here

     

    2. Unzip Run Sed.zip and put the 3 files (sed.exe, Sed_Script.txt, ExampleForCory.txt) into a folder which MEP can read. Take note of the folder path. Also note that Windows 7/Vista will block access to certain folders.

     

    3. Import Run Sed.mex into Macro Express Pro

     

    4. Change the WorkingFolder variable in the script to the full path of the folder which contains the 3 files from Step #2

     

    5. Run the script, and it will process ExampleForCory.txt and report the results

     

    The Sed_Script.txt file has comments which explain the Sed commands. I also learned a lot from this site:

     

    Famous Sed One-Liners Explained

     

     

    -Lemming

    Run Sed.mex 1.89 kB · 20 downloads

    Run Sed.zip 25.43 kB · 14 downloads

    post-528-127997171406_thumb.png

    Hello there

    I wanted to try this method ... but the files aren't available any longer 😞.

    Is there a solution to obtain it ... after all these years ?

     

    Thank you for your answer

  2. :huh:

    I spent a long time looking at the help and tried in all the menus ...

    still can't find how to type an e-mail adress via Macro Express.

     

    When I go to "Text type" in the Script commands,

    I can see how to type an Alt-key

    but not the Alt-gr-key

     

    and on the other hand, the symbols available don't include the @.

     

    Can anybody help ?

×
×
  • Create New...