Is there a way using a regular expression to split a string of text such as an address by a number of words/spaces? Or even more functional, split a line at the first space after a certain number of characters?
Solved
Splitting Attributes by number of words
Best answer by takashi
Hi @gmbutler2, the StringReplacer with this setting transforms a single line address string into your desired multi-line string at once.
- Mode: Replace Regular Expression
- Text To Replace: (.{19,}?)\s
- Replacement Text: \1<newline character>
Alternatively, this string expression does the trick too. Assuming that an attribute called "address" stores the original single line address string.
@ReplaceRegEx(@Value(address),(.{19,}?)\s,\1
)
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.





