The Altair Community is migrating to a new platform to provide a better experience for you. In preparation for the migration, the Altair Community is on read-only mode from October 28 - November 6, 2024. Technical support via cases will continue to work as is. For any urgent requests from Students/Faculty members, please submit the form linked here

Hi all! How can I replace words?

GeorgeOik1999GeorgeOik1999 Member Posts: 10 Contributor II
 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: 541 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
Sign In or Register to comment.