Advent of Code is back! Unwrap daily challenges to sharpen your Alteryx skills and earn badges along the way! Learn more now.

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
15 - Aurora
15 - Aurora

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