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?
GeorgeOik1999
Member Posts: 10 Contributor II
in Help
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?
0
Comments
Best,
Cesar
Another option might be to combine a couple of things, you could use the split operator on your [listed_in] field, and split on , (comma space). next you could loop through all your attributes, filter out all empty ones and you'll be left with a nice list of single entries
So TV Horror, Teen TV shows will first become
Att1 Att2
TV Horror Teen TV Shows
and then
TV Horror
Teen TV shows
...