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
"[SOLVED] How to Split an Attribute and Keep the Split Character?"
jan_kvacek
Member Posts: 4 Contributor I
Hello!
I have a trubble with splitting attributes in Rapidminer Studio. My attribute looks like this:
"A002W0541G001"
I need to split it to several new attributes:
"A002" "W0541" "G001" and so on.
But Split always dropps the character I use to determine where to split the original attribute. Is there any way to keep it?
Thank you for help!
Jan
I have a trubble with splitting attributes in Rapidminer Studio. My attribute looks like this:
"A002W0541G001"
I need to split it to several new attributes:
"A002" "W0541" "G001" and so on.
But Split always dropps the character I use to determine where to split the original attribute. Is there any way to keep it?
Thank you for help!
Jan
Tagged:
0
Answers
Dortmund, Germany
Assuming you have a pattern of [Letter+Numbers][Letter+Numbers] then this works: "(?<=[0-9]++)(.*?)(?=[A-Z])"
Negative lookbehind to check there are numbers before, lookahead to check for the letter. Anything inbetween is used to split.
Sample process below: