Page 1 of 1

Replace command (replace using a backspace)

Posted: Tue Nov 22, 2005 10:28 pm
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.

Posted: Wed Nov 23, 2005 12:10 am
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