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
deleting 0's from an attribute
IljaDeCoster
Member Posts: 7 Contributor II
Dear,
With in a proces i created an nominal attribute with examples like:
0001
0110
1010
0011
0111
1111
...
I would like to change this attribute deleting all the 0's before the first 1 (while keeping the 0's after the first 1). So the example should look like:
1
110
1010
11
111
1111
...
I tried with the replace operator and a regular axpression, but It seems I don't find the right one...
Thanks a lot,
Ilja
With in a proces i created an nominal attribute with examples like:
0001
0110
1010
0011
0111
1111
...
I would like to change this attribute deleting all the 0's before the first 1 (while keeping the 0's after the first 1). So the example should look like:
1
110
1010
11
111
1111
...
I tried with the replace operator and a regular axpression, but It seems I don't find the right one...
Thanks a lot,
Ilja
0
Answers
Best regards,
Marius
I add the process here:
Best regards,
Marius