🎉Community Raffle - Win $25

An exclusive raffle opportunity for active members like you! Complete your profile, answer questions and get your first accepted badge to enter the raffle.
Join and Win

"[SOLVED] Macro to string"

User: "tennenrishin"
New Altair Community Member
Updated by Jocelyn
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.)

Find more posts tagged with

Sort by:
1 - 1 of 11
    User: "MariusHelf"
    New Altair Community Member
    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