In case you missed the announcement: The Alteryx One Fall Release is here! Learn more about the new features and capabilities here
ACT NOW: The Alteryx team will be retiring support for Community account recovery and Community email-change requests after December 31, 2025. Set up your security questions now so you can recover your account anytime, just log out and back in to get started. Learn more here
Start Free Trial

Alteryx Designer Desktop Discussions

Find answers, ask questions, and share expertise about Alteryx Designer Desktop and Intelligence Suite.
SOLVED

RegEx delimit

lvprasad
7 - Meteor

i've data like this format (-4 812.50 24 009.46). Please help to delimit this data into two columns like '-4 812.50'  and '24 009.46'

6 REPLIES 6
Thableaus
17 - Castor
17 - Castor

Hi @lvprasad 

 

Could you please provide more examples of your data?

 

Cheers,

OllieClarke
16 - Nebula
16 - Nebula

Based on the one row you've given, tokenise to columns with this formula:

(.*?\.\d{2})

OllieClarke_0-1573219332680.png

neilgallen
12 - Quasar

assuming the parenthesis are a part of the data, then you could use 

 

(?:\()(-*\d+\s\S+)(?:\s+)(.*)(?:\)$)

 

It's a simple adjust if the parenthesis are not present in the data. This pattern also assumes there may or may not be a "-" on the first group.

benakesh
12 - Quasar

Hi @lvprasad ,

I tried with splitting  by space and combine by formula . 

benakesh_0-1573219316633.png

 

lvprasad
7 - Meteor

Thank you @neilgallen. actually there are no parenthesis, but some times we may have negative sign and some times not. Thanks for your solution.

lvprasad
7 - Meteor

Thank you @OllieClarke. it worked.

Labels
Top Solution Authors