Hi all! How can I replace words?

GeorgeOik1999GeorgeOik1999 Member Posts: 10 Learner I
 It is not practical to Map one by one all the values , so I want to replace the words with numbers. When I see TV Horror I want to be 15 all the example and TV Dramas=4. Is there any faster way ( some regular expresion ) that will replace the whole example? 

Comments

  • ceaperezceaperez Member Posts: 302 Unicorn
    Hi @GeorgeOik1999

    have you try with the replace function of Generate Attribute?, something like this  may be useful

    replace(text, "TV Horror", "15")

    Best, 

    Cesar
    GeorgeOik1999
Sign In or Register to comment.