community
cancel
Showing results for 
Search instead for 
Did you mean: 

Alteryx designer Discussions

Find answers, ask questions, and share expertise about Alteryx Designer.
#SANTALYTICS

The highly anticipated Alteryx Community tradition is back! We hope you'll join us!

Learn More
We will be upgrading the Gallery to our 2019.4 release this Saturday, December 7th beginning at 9:00am MT. We expect the outage to take last approx. 2.5 hours.
SOLVED

Removing quotations - StripQuotes not working

Meteoroid

Hi, 

I want to remove the double quotations from the second record in this data set. Neither StripQuotes nor Trim is working. What am I missing here? What's the solution? 

Thanks, 

Dan Stone

Alteryx Certified Partner

Try using,

 

 

trim([Comment],'“')

 

 

You weren't doing anything wrong per se. This ascii character isn't considered a quotation mark. So all I did was copy and paste this “ is into your formula.

 

Hope this helps. 

 

Edit: It's actually a Left Double Quotation Mark which apparently isn't recognised by StripQuotes.

Alteryx
Alteryx

@Present_guy You can use the replace function in the formula tool to replace the quotes.

 

ReplaceFirst([Field2], '”', '')

ReplaceFirst([Field2], '“', '')
Digan
Alteryx
Alteryx Certified Partner

@Present_guy 

 

REGEX_REPLACE([Comment], '^[[:unicode:]]?(.+?)[[:unicode:]]?$', '$1')

Will also work. This will trim out any non-ascii character (or any char code over 255) that's found either at the beginning or end of the string... may be overkill, but just another option to explore.

Jimmy
Teknion Data Solutions 

Meteor

@Present_guy 

 

You can also use a regular expression to strip the quotes out if you see this being a regularly occurring theme in your data. Hope this helps!

 

clipboard_image_1.png

Labels