Quantcast
Channel: Remove filler words from a string - Code Golf Stack Exchange
Viewing all articles
Browse latest Browse all 6

Answer by Xcali for Remove filler words from a string

$
0
0

Perl 5-pF\", 103 bytes

map++$i%2&&s/\b(um|uh|like|you know)\b//gi,@F;$_=join'"',@F;s/^ *| +?(?=,| )//g;s/(^|\. )\K\S+/\u\L$&/g

Try it online!


Viewing all articles
Browse latest Browse all 6

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>