Forum Discussion

MrLidums's avatar
MrLidums
Frequent Visitor
4 years ago
Solved

Extract id from the string

Hi.   Problem I need to split the String into separate parts. Usually, I would use the built-in Split Column function. However, in this case, I have data (String) with this pattern: [text1]_[text...
  • AlexisOlson's avatar
    AlexisOlson
    4 years ago

    If the [id] can context letters and underscores, then it could theoretically contain "_all_", so splitting on that might not be the best approach, especially if not all of the names end with that.

     

    It looks like your [id] always has 8 characters, so why not split on that?

    Table.SplitColumn(Source, "Name with id", Splitter.SplitTextByPositions({0, 8}, true), {"Name", "Id"})