How to remove spaces inside quotes?

Is it possible to remove first and last space in sentences in quotes like these:

The man said: " I don't know him. " But he was lying.

I want to remove the space that is in the beginning after the first quote mark (" I) and in the end before the second quote mark (him. ")? I can't use replacements like these: (" ) with (") and ( ") with (") because this will remove the spaces between the sentences.
Answer
Answer

Press Ctrl+H to open the Replace dialog.

Click More >>.

Tick the check box "Use wildcards".

Enter the following in the Find what box:   (" )(*)(. ")

Enter the following in the Replace with box:   "\2."

Click Find Next, of if you're feeling adventurous, click Replace All.

If you don't like the result, you can undo it.

---
Best wishes, HansV
https://www.eileenslounge.com

1 person found this reply helpful

·

Was this reply helpful?

Sorry this didn't help.

Great! Thanks for your feedback.

How satisfied are you with this reply?

Thanks for your feedback, it helps us improve the site.

How satisfied are you with this reply?

Thanks for your feedback.

 
 

Question Info


Last updated April 23, 2024 Views 371 Applies to: