--- In email@example.com
, merlyn@... wrote:
> >>>>> "hooyar66" == hooyar66 <pcbcad@...> writes:
> hooyar66> I want to be able prefix all non-words EXCEPT SPACES with
> you mean non-word-characters?
> so the set of \W without space?
> That'd be [^\w ], so s/([^\w ])/\\$1/g
> Pretty simple, once you understand set arithmetic. :)
> Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503
> <merlyn@...> <URL:http://www.stonehenge.com/merlyn/>
> Perl/Unix/security consulting, Technical writing, Comedy, etc. etc.
> See PerlTraining.Stonehenge.com for onsite and open-enrollment Perl
Thanks Randal that's perfect, yes I should have stated "non-word-
The caret ^ used to negate instead of as a 'beginning' marker
confused me for a while, had to RTFM ;-)