Bring your best ideas to the AI Use Case Contest! Enter to win 40 hours of expert engineering support and bring your vision to life using the powerful combination of Alteryx + AI. Learn more now, or go straight to the submission form.
Start Free Trial

Alteryx Designer Desktop Discussions

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

Extracting percentages out of string columns

mokawner
7 - Meteor

I am trying to extract the percentages out of this column (COMPENSATIONAMOUNT) but they are kinda messy.

For example, this is what is in the column:

"FlashFunders shall be entitled to compensation for services equal to four percent (4%) of gross proceeds, and be entitled to reimbursement for out-of-pocket third party expenses it pays or incurs on behalf of the issuer in connection with the offering"

And I just want this:

4%

There are also percentages that are in decimal format too like 5.5% and such.

I am having trouble extracting these numbers, can anyone help me out?

3 REPLIES 3
Qiu
21 - Polaris
21 - Polaris

@mokawner 
I will only focus on the extracting part. 🤣

 

(\d{1,2}\.*\d*%|\d{1,2}\spercent)

0511-mokawner.PNG

 

mokawner
7 - Meteor

That is so impressive, I am glad you were able to answer my question!

You rock @Qiu !!

Qiu
21 - Polaris
21 - Polaris

@mokawner 
Glad to be helpful. 😁

Labels
Top Solution Authors