PDA

View Full Version : Solved: replace



Pasquale
08-14-2005, 10:24 PM
Hallo
J need help

How replace in a long doc: All comma inserted in square bracket must be replaced with colon.

sample

[Gen 1,23] with [Gen 1:23] ad so on

P.S. in square bracket there are always: first three letter characters, 1 space, a number (one,two or three ciphers), a comma and another number (one,two or three ciphers).

thanks
pasquale
:doh: :doh:

sandam
08-15-2005, 04:29 AM
Using find and replace. OK.

Open Find and replace, and in the more options, turn wildcards on.

then in the find bar put this expression in (without the inverted commas of course) ->
"<(???)([ ])([0-9]*)([,])"

and in the replacewith bar put this expression (again without the inverted commas)->
"\1\2\3:"


HTH
Andrew;?

Pasquale
08-15-2005, 09:38 AM
Hi Andrew

it work very well

thanks