Jump to content
Macro Express Forums

Can I Parse A String In Me?


Jason1

Recommended Posts

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%

Link to comment
Share on other sites

  • 4 months later...
  • 1 month later...

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!

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...