Need help on replacing multiple spaces to a single space using Regular Expression
-
Hi everyone,
I’d like to ask for help on how to replace multiple spaces between words into a single space in a txt file like below:Nice to meet you!
->
Nice to meet you.I’m sure there is a certain way in Regular Expression that is able to accomplish this function but don’t know where to start or how to write the expression in the “Replace” box.
Is there anyone who have any idea?
Thanks in advance and appreciate for your suggessions.Regards,
George -
Put a single space followed by a
+in the Find what box. Select Regular expression search mode and press Find Next. You will see the results and should be able to build on that to do your desired replacement. -
That works, thank you so much Scott :-)
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login