Due to recent updates, all users are required to create an Altair One account to login to the RapidMiner community. Click the Register button to create your account using the same email that you have previously used to login to the RapidMiner community. This will ensure that any previously created content will be synced to your Altair One account. Once you login, you will be asked to provide a username that identifies you to other Community users. Email us at Community with questions.

"[SOLVED] Macro to string"

tennenrishintennenrishin Member Posts: 177 Contributor II
edited June 2019 in Help
If a macro contains the '\' character, is there any way to make a literal string out of it?

(In my case, it is a regex input to a process, and it is to be used in a call to matches(...) (in Generate Attributes). I would like to avoid having to use "\\" instead, because the regex is also used elsewhere directly.)
Tagged:

Answers

  • MariusHelfMariusHelf RapidMiner Certified Expert, Member Posts: 1,869 Unicorn
    In the next version there will be a function macro("myMacro") which creates a literal string from the macro with the given name. You can even specify a default value which is returned if the macro is undefined:

    macro("myMacro", "defaultValue")

    This function will be available in RapidMiner 5.2.009.

    Best,
      ~Marius
Sign In or Register to comment.