Utilizing RegEx
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
I am trying to split
"106108Banking Crisis" into "106108" and "Banking Crisis" into 2 separate columns.
I currently have the following set up and it is splitting it into "106108" and "Banking"
Could someone please help me troubleshoot as to how I can solve this.
Thank you!
Solved! Go to Solution.
- Labels:
- Regex
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Hi @kimberlyka
Is there more data you are parsing from the field before/after this? Based on your screenshot that appears to be the case, and I would need to know the rest of what you're parsing in order to write the code.
Cheers!
Phil
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Hi Phil!
The dataset is just more of the same...
"106106IHC Base"
"106108Prolonged Covid"
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
@kimberlyka If that's the case, then you can use the following RegEx code.
(\d{1,})?([a-z].*)
Note that the question mark isn't really needed if your data is all similar. I put it in to account for a random space that may occur between the digits and letters in your field.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Hi @kimberlyka ,
nice and simple, just used the following:
(\d{6})([^\d]+)
And set the tool to Parse:
Hope this helps,
M.
