In the column 'knoopnr', each feature consists of a fixed ID (in this example 'HT005500') and a variable ID (B1, B2, BL1, ...). The fixed ID is therefore identical for every row within a project, but it differs from project to project. In another project, for example, the fixed ID could be 'KWL735' for every row. Is it possible to identify the fixed ID and retain only the variable ID?
Solved
How to extract the variable part of an ID with a common prefix?
Best answer by ebygomm
If you don’t mind a bit of python, it’s very easy to get the common prefix using that

Once you’ve got that you can use it in a stringreplacer to remove it and just keep the variable section

(Of course you could do it all in python too)
*It might need a bit of modification to handle cases where the entire value is numeric
This post is closed to further activity.
It may be an old question, an answered question, an implemented idea, or a notification-only post.
Please check post dates before relying on any information in a question or answer.
For follow-up or related questions, please post a new question or idea.
If there is a genuine update to be made, please contact us and request that the post is reopened.
It may be an old question, an answered question, an implemented idea, or a notification-only post.
Please check post dates before relying on any information in a question or answer.
For follow-up or related questions, please post a new question or idea.
If there is a genuine update to be made, please contact us and request that the post is reopened.




