Replace command (replace using a backspace)

Get help with the installation and running of the Zeus IDE. Please do not post bug reports or feature requests here. When in doubt post your question here.
Post Reply
jay

Replace command (replace using a backspace)

Post by jay »

Is there an option to replace characters with a backspace ?

Example Input:

This is 01 text.
This is 02 text.

[do some replace command to find the numbers "0" and replace it with a backspace to result in ...]

Output:

This is 1 text.
This is 2 text.
jussij
Site Admin
Posts: 2650
Joined: Fri Aug 13, 2004 5:10 pm

Post by jussij »

Hi Jay,

In general, depending on the shape of the text being changed Zeus offers several ways to manipulate the text including a keyboard macro script, a search and replace or maybe even a column cut and copy.

But in to answer your question to convert this text:

Code: Select all

This is 01 text. 
This is 02 text.

into this text:

Code: Select all

This is 1 text. 
This is 2 text.
using a Search and Replace this is what I would do:
  1. Select the Edit Replace menu
  2. Enter this Find text (0)([0-9]+)
  3. Enter this Replace text \2
  4. Check the Use regular expression option
  5. Click the Replace All button
For more details on how to better understand the search string that I used use the Help, Help Contents menu and click on the User Manual, Regular Expressions section.

Cheers Jussi
Post Reply