CUT and REPLACE

General questions about using WildEdit

Moderators: AmigoJack, bbadmin, helios, Bob Hansen, MudGuard

Post Reply
martib
Posts: 19
Joined: Wed Aug 23, 2006 2:28 pm

CUT and REPLACE

Post 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
ben_josephs
Posts: 2461
Joined: Sun Mar 02, 2003 9:22 pm

Post 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.
Post Reply