LAE

Welcome to the LAE community!  Please feel free to start a discussion in the discussion tab or join in a conversation.

Discussions

Members

Resources

Events

 View Only
  • 1.  How to use Replace Text Node

    Employee
    Posted 08-08-2013 05:51

    Note: This was originally posted by an inactive account. Content was preserved by moving under an admin account.

    Originally posted by: Sreya

    Hi,

    I have Male and Female data in the form of F and M.
    I want to replace M with Male and F with Female.

    how can I write a rule in Replace Text node and do this.

    Please help.

    Regards,
    Sreya


  • 2.  RE: How to use Replace Text Node

    Employee
    Posted 08-08-2013 09:51

    Note: This was originally posted by an inactive account. Content was preserved by moving under an admin account.

    Originally posted by: stonysmith

    Sorry.. I misread your request....
    I would use a regular filter node:

    g = Gender.replace("F","Female").replace("M","Male")
    emit *
    override emit Gender=g


  • 3.  RE: How to use Replace Text Node

    Employee
    Posted 08-08-2013 22:00

    Note: This was originally posted by an inactive account. Content was preserved by moving under an admin account.

    Originally posted by: Sreya

    Yes this would also work in the same way but in my case I want to use Replace Text node effectively and do this..

    So can you please help me on using that particular node?




    Originally posted by: stonysmith
    					

    Sorry.. I misread your request....
    I would use a regular filter node:

    g = Gender.replace("F","Female").replace("M","Male")
    emit *
    override emit Gender=g


  • 4.  RE: How to use Replace Text Node

    Employee
    Posted 08-14-2013 14:36

    Note: This was originally posted by an inactive account. Content was preserved by moving under an admin account.

    Originally posted by: ltolleson

    Copy everything between the ***** lines and paste into your graph. This is an example of how to use the "Replace Text" node.

    ************************************************
    node:Replace_Text
    bretype:core::Replace Text
    editor:sortkey=520bf41362f12740
    input:@40fd2c743f6973ec/=Static_Data.40fe6c55598828e5
    output:@40fd2c7469010b53/=
    prop:Fields=<<EOX
    Gender=GenderChange
    EOX
    prop:Rules=<<EOX
    GenderChange::
    M->Male
    F->Female
    EOX
    editor:XY=200,230
    end:Replace_Text
    ************************************************

    This node is obviously not well documented in the help as I had to search to find an example of how to use it.

    Please refer to the link below for more examples on how to use the Replace Text node.

    http://community.lavastorm.com/threa...ning-Session-4

    There are also many other training sessions for specific nodes available on the forum. Use the link below to check it out.

    http://community.lavastorm.com/threa...ining-Overview

    Hope that helps...

    Larry