| View previous topic :: View next topic |
| Author |
Message |
oxygen Voice
Joined: 05 Sep 2005 Posts: 22 Location: Germany
|
Posted: Tue Jan 17, 2006 7:52 am Post subject: replacing spaces with random letter |
|
|
Hello.
How can I replace spaces in a given fraze randomly with letters [a-z] and a specific color.
Thx in advance..
Oxygen |
|
| Back to top |
|
 |
Sir_Fz Revered One

Joined: 27 Apr 2003 Posts: 3793 Location: Lebanon
|
Posted: Tue Jan 17, 2006 9:15 am Post subject: |
|
|
| Code: | | regsub -all {\s} $str \00304[randstring 1 abcdefghijklmnopqrstuvwxyz]\003 str |
this will replace all spaces with a red-colored random alphabet. _________________ Follow me on GitHub
- Opposing
Public Tcl scripts |
|
| Back to top |
|
 |
oxygen Voice
Joined: 05 Sep 2005 Posts: 22 Location: Germany
|
Posted: Wed Jan 18, 2006 6:25 am Post subject: |
|
|
working fine
Tnx Sir_Fz |
|
| Back to top |
|
 |
|