McNeel Forum
Split text based on specific character, but retain character
Grasshopper
Mahdiyar
October 15, 2020, 7:30pm
2
TextSplit
1318×758 40.3 KB
import re t = ''.join(re.split('([-+])',x)[1:]) a = t if t else None
TextSplit.gh
(5.9 KB)
2 Likes
show post in topic
Related topics
Topic
Replies
Views
Activity
Split text based on character, but keep 'splitting character'
Grasshopper
windows
23
2122
February 11, 2023
Split text - based on multiple successive Letters
Grasshopper
11
2977
January 6, 2025
Split a list of multiple items, based on a specific karakter in each item
Grasshopper
4
385
February 25, 2020
Text split wish : wildcards for choice of multiple seperators
Grasshopper
5
1101
November 26, 2020
Removing Specific Characters each element in a List
Grasshopper
windows
2
1820
February 24, 2022