Community & Support
Learn
Marketplace
Discussions
Categories
Discussions
General
Platform
Academic
Partner
Regional
User Groups
Documentation
Events
Altair Exchange
Share or Download Projects
Resources
News & Instructions
Programs
YouTube
Employee Resources
This tab can be seen by employees only. Please do not share these resources externally.
Groups
Join a User Group
Support
Altair RISE
A program to recognize and reward our most engaged community members
Nominate Yourself Now!
Home
Discussions
Community Q&A
Remove leading zero, space and dash in existing column and return the output in new column
syazwaan
I have a dataset something like this:
I want to remove leading zero, space, and dash in column_1 and return the new data in a new column.
Expected output:
Thank you.
Find more posts tagged with
AI Studio
Replace
Accepted answers
BalazsBaranyRM
Hi!
The easiest way to do this is Generate Attributes with the replaceAll function.
It takes three parameters: The name of the attribute to read (column_1), the regular expression to search for, and the replacement (the empty string "").
A regular expression to find leading spaces, zeros and dashes would be this:
^[0 -]+
Regards,
Balázs
All comments
BalazsBaranyRM
Hi!
The easiest way to do this is Generate Attributes with the replaceAll function.
It takes three parameters: The name of the attribute to read (column_1), the regular expression to search for, and the replacement (the empty string "").
A regular expression to find leading spaces, zeros and dashes would be this:
^[0 -]+
Regards,
Balázs
Quick Links
All Categories
Recent Discussions
Activity
Unanswered
日本語 (Japanese)
한국어(Korean)
Groups