in reply to matching not just words; alternative to (\w+) ?

Perhaps .+ or \S+ is what you want instead of \w+?

Replies are listed 'Best First'.
Re: Re: matching
by hardburn (Abbot) on Feb 05, 2004 at 18:59 UTC

    Both of those will also match control characters, like ESC and NUL. Probably a bad idea.

    ----
    I wanted to explore how Perl's closures can be
    manipulated, and ended up creating an object
    system by accident.
    -- Schemer

    : () { :|:& };:

    Note: All code is untested, unless otherwise stated