Adding numbers to text

Find, replace, find in files, replace in files, regular expressions

Adding numbers to text

Postby Alv_ » Thu Jun 02, 2005 1:43 pm

I have text like:

Code: Select all
wildkat77   34229   persolta
west216   124392   persolta
warmknights   236506   persolta
Volleyball   22292   persolta
vincentkram   213993   persolta
vigoman22   73809   persolta
varsitystud   209343   persolta

to be replaced with

Code: Select all
wildkat77   34229   persolta1
west216   124392   persolta2
warmknights   236506   persolta3
Volleyball   22292   persolta4
vincentkram   213993   persolta5
vigoman22   73809   persolta6
varsitystud   209343   persolta7

so that each line is unique

Also, how do I assign a random string to replace the "persolta" text?
User avatar
Alv_
Newbie
 
Posts: 3
Joined: Mon Aug 08, 2005 11:00 pm

Re: Adding numbers to text

Postby JohnDoe » Wed Sep 13, 2006 10:43 am

Would interest me too!
User avatar
JohnDoe
Newbie
 
Posts: 1
Joined: Wed Jul 12, 2006 11:00 pm

Re: Adding numbers to text

Postby Bego » Wed Sep 13, 2006 11:05 am

Hi,

if you look here you will find a solution.
Mofi wrote a "countUp" Makro. The rest should be easy:

viewtopic.php?t=2821

rds Bego
User avatar
Bego
Master
Master
 
Posts: 357
Joined: Wed Nov 24, 2004 12:00 am
Location: Germany

Re: Adding numbers to text

Postby Mofi » Wed Sep 13, 2006 11:44 am

If you line up your lines better so "persolta" starts always at the same column you can also switch to Colmn - Column Mode and use Column - Insert Number to add a number at every line.

What do you mean with "random string"?

UltraEdit has no random generator to create really random strings.
User avatar
Mofi
Grand Master
Grand Master
 
Posts: 4058
Joined: Thu Jul 29, 2004 11:00 pm
Location: Vienna


Return to Find/Replace/Regular Expressions