Skip to main content
Inspiring
August 17, 2022
Answered

GREP Search and Replace

  • August 17, 2022
  • 2 replies
  • 371 views

Does anyone know if it's possible to search for a (.) period that is between two letters and delete just the period and leave the letters intact?

 

I have a Word file that's been exported out of a PDF file and everywhere there was a hyphen a (.) period was inserted.

 

Thanks,

 

Peter

This topic has been closed for replies.
Correct answer Manan Joshi

Find what

(?<=\w)\.(?=\w)

Change to:- Leave it blank

See if this works

-Manan

2 replies

Spenno
Inspiring
August 17, 2022

Could you use a basic find/change using an 'any character' wildcard either side of a period and in the change box remove the period?

Although the GREP looks handy.

Community Expert
August 17, 2022

You are basically asking for the Grep syntax to work for text find/replace. I don't think that would work. However, why do you want to avoid grep and use text find/replace, any reasons?

-Manan

-Manan
Manan JoshiCommunity ExpertCorrect answer
Community Expert
August 17, 2022

Find what

(?<=\w)\.(?=\w)

Change to:- Leave it blank

See if this works

-Manan

-Manan