Showing results for 
Search instead for 
Did you mean: 
Kudo Kingpin
Kudo Kingpin

Strip all punctuation from a text input

I'm trying to allow my users to paste whole paragraphs of text into a text box, which I then need to parse without any punctuation. I'm happy with the parsing, but not sure of the best way to remove punctuation.


Looking at the Substitute function, and thinking back to my InfoPath days, it doesn't let you replace characters by position. So for example I can't list all the characters I want to remove and 'replace' them with a blank string.


I guess I could nest a bunch of substitutes as below, but this feels inefficient.


Substitute(Substitute(Substitute(TextInput1.Text, ".", ""), ",", ""), ";", ""), etc.....


Any thoughts?

Helper V
Helper V


I needed to remove " (quotation marks).

That's what my friend and I thought of:

First(Split( yourLABEL.Text, Char(34) )).Result & Last(Split( yourLABEL.Text, Char(34) )).Result

It split the sentence before and after the quotation marks.

Hope it helps

Helpful resources

News & Announcements

Community Blog

Stay up tp date on the latest blogs and activities in the community News & Announcements.

Power Apps Community Call

Power Apps Community Call- January

Mark your calendars and join us for the next Power Apps Community Call on January 20th, 8a PST

PP Bootcamp Carousel

Global Power Platform Bootcamp

Dive into the Power Platform stack with hands-on sessions and labs, virtually delivered to you by experts and community leaders.


Power Platform Community Conference On Demand

Watch Nick Doelman's session from the 2020 Power Platform Community Conference on demand!

Top Solution Authors
Top Kudoed Authors
Users online (5,666)