Page 1 of 1

CUT and REPLACE

Posted: Thu Aug 24, 2006 11:27 am
by martib
hi there!

how do it do the following?

i have a list

ACME WAREHOUSE
CYBERELECTRONICS
ENGINES AND SONS and so on

i would like to show only 6 letters from the beginning and the rest convert in dots:

ACME W........
CYBEREL.........
ENGINE. ... ....

thanks,
marti

Posted: Thu Aug 24, 2006 1:12 pm
by ben_josephs
Tricky!

But you can do it using a conditional expression in the replacement expression:
Find what: (^.{6})|(.)
Replace with: ?1$1:?2.

[X] Regular expression
[X] Replacement format

Options
[X] '.' does not match a newline character
Look for Conditional expressions in the help under Reference | Replacement Format Syntax.