Jason1 Posted April 13, 2006 Report Share Posted April 13, 2006 Hi, I'm interested in parsing a string in ME. Specifically: I'd like to pick out that "blah.txt" is the filename from the whole string c:\blah\blahblah\blah.txt Is this possible? Thanks! Jason Quote Link to comment Share on other sites More sharing options...
kevin Posted April 13, 2006 Report Share Posted April 13, 2006 To parse the parts of a file pathname use the Variable Set From File Path and use the 'Get File Path Info' option. You can parse other strings using the basic variable commands such as: Variable Set From File Path Variable Set String %T1% "" Variable Modify String: Copy %T1% to %T2% Variable Modify String: Copy Part of %T1% to %T2% Variable Modify String: Delete Part of %T1% Replace ".txt" with ".TXT" in %T1% Variable Set Integer %N1% from Length of Variable %T1% Variable Set Integer %N1% from Position of Text in Variable %T1% Quote Link to comment Share on other sites More sharing options...
TwoWheels Posted August 15, 2006 Report Share Posted August 15, 2006 I would like to see Regular Expression search and replace functionality in Macro Express. I don't log on very often, but I'm trolling the Forum tonight to see if this has been mentioned. Kevin / Joe / Floyd, has there been a Feature Request for this? Thanks, Rich Quote Link to comment Share on other sites More sharing options...
kevin Posted August 15, 2006 Report Share Posted August 15, 2006 There have been several requests for Regular Expressions. It is currently on the list of features to consider. Quote Link to comment Share on other sites More sharing options...
kunkel321 Posted August 16, 2006 Report Share Posted August 16, 2006 I too, would use regular expressions. Quote Link to comment Share on other sites More sharing options...
TwoWheels Posted September 24, 2006 Report Share Posted September 24, 2006 For what it's worth, the Boost libraries contain a well-known implementation of Regular Expressions. It's the implementation written by Dr. John Maddock. I've used this in C++ programs, and it has worked fine. You can go to www.boost.org to download the entire Boost system. The Boost licensing allows the software to be used in commercial applications without fees or royalties. Best thing about Boost is that it is peer-reviewed and is likely very stable and reliable. Regular expression code is by no means simple! 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.