|
As you will find out, there are many ways to do what
you ask. I have a regex:
#!perl -w
_ = 'abcdefghi';
s/(\w{3})(?=\w)/$1-/g; printf "%-s\n", $_;
Output:
abc-def-ghi
The s/ express groups together three characters and then uses (?=\w) to
do the hypen if there is a following character if not, then no hyphen(end of
data).
Wags ;)
|
- HELP!! Michael C. Podlesny
- RE: HELP!! Fernando Madruga
- Re: HELP!! Michael C. Podlesny
- RE: HELP!! Podlesny, Michael
- HELP!! Michael C. Podlesny
- RE: HELP!! John Serink
- Re: HELP!! Brian Noble
- RE: HELP!! Wagner, David --- Senior Programmer Analyst --- WGO
- RE: HELP!! Aldrich, Timothy
