|
|
 |
Re: FN-FORUM: bulk character insert in text doc
date posted 18th January 2004 21:19
> In Word or Textpad?
>
> I have a list of words and I need to insert a character both at the
> beginning and at the end of each word. Is there a quick and easy
> way to do this I'm going bog eyed copying and pasting.
I undrestand that this a list of single words in one line.
1. Textpad
a. F8
b. check "regular expressions"
c. Find what: ^
d. Replace with:
e. hit "replace all"
g. Find what: $
h. Replace with:
i. hit "replace all"
2. easier solution is to do it in perl from command line (e.g.: cygwin)
$ perl -pi -e 's#^(.*?)$#$1#g'
--
Gregory BRZESKI
|
 |
|