terrypin Posted February 18, 2019 Author Report Share Posted February 18, 2019 @kunkel321 I recommend the approach I described, namely activating a program that does support Regex to accomplish your search/replace. I personally use TextPad but here's a page suggesting a dozen free tools: https://stackoverflow.com/questions/132405/free-alternative-to-regexbuddy Terry, East Grinstead, UK Quote Link to comment Share on other sites More sharing options...
kunkel321 Posted February 18, 2019 Report Share Posted February 18, 2019 Thanks for the cool list Terry! As it turns out, I do have a copy of RegExBuddy! There are actually a few AHK-based regex testing tools as well. The thing I'm not sure about is transparently sending the information back and forth between the applications. Interesting note: I tried the method that Lemming put (previously on this same thread, 2010). His MEp script did need one tweak... In the step where you capture "sed.exe" you need to checkmark the "Capture Console Output" box. Unfortunately, SED appears to have its own language.... It's taken me years to learn the small amount of regex, AHK, and MEp that I know. I don't want to have to learn SED too!!!! Quote Link to comment Share on other sites More sharing options...
Juan-Pablo Posted January 6 Report Share Posted January 6 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 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 Quote Link to comment Share on other sites More sharing options...
terrypin Posted January 6 Author Report Share Posted January 6 1 hour ago, Juan-Pablo said: 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 I assume you mean Lemming's two sed files (.mex and .zip) from nearly 13 years ago? If so, I was able to download both. What problem are you having. Quote Link to comment Share on other sites More sharing options...
Juan-Pablo Posted January 7 Report Share Posted January 7 Hello Terrypin yes, these two files. I tried again this morning, it works 😊. You were right. Simply, yesterday, I was not properly logged into the forum before trying to download. Have a nice day Quote Link to comment Share on other sites More sharing options...
Cory Posted January 27 Report Share Posted January 27 I did create a simple program called RexEx MEP. It still needs some refinement. But if you're interested, let me know. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.