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

User Group Leader Meeting January 768x460.png

Calling all User Group Leaders!

Don't miss the User Group Leader meetings on January, 24th & 25th, 2022.

Power Apps Community Call Jan. 2022 768x460.png

Power Apps Community Call

Please join us on Wednesday, January 19th, at 8a PDT. Come and learn from our amazing speakers!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

Top Solution Authors
Top Kudoed Authors
Users online (2,523)