Skip to main content
Known Participant
October 25, 2023
Question

Find and delete all numbers in a document

  • October 25, 2023
  • 1 reply
  • 1505 views

Want to delete all numbers in a document.

I have tried the find function, 

but I want all the numbers deleted and the body of the text moved to where the white space of the deleted number is.

 

When i use the find function, and replace with Em white space, it finds and deletes all numbers, but the text is no longer alighned because there is unwanted white space to the left of the text (where the number was).

 

How do i delete all numbers and shift the text to the left so it remains perfectly alighned?

 

 

1 reply

Peter Spier
Community Expert
Community Expert
October 25, 2023

Find numbers and replace with nothing... No whitespace will be created and your text will move left.

Known Participant
October 25, 2023

Thanks that works.

The problem though is that there is 1 extra space between the number and paragraph as well, ie:

1 The ...

 

The text is shifted left for the deleted number, but how do I shift it left and aditional time for the extra white space between number and paragraph?

 

James Gifford—NitroPress
Legend
October 25, 2023

Include the space. Use '\d ' as the search term. (Note the space included, there.)

 

You can also search for '\r ' (Again, note the space), and replace it with just '\r' to replace every space following a paragraph return.