in reply to Re: Regex to Truncate URLs Nicely
in thread Regex to Truncate URLs Nicely

Neat, thank you.

One question:

s![?].*$!!;

Why is the query in brackets there?
--

($_='jjjuuusssttt annootthheer pppeeerrrlll haaaccckkeer')=~y/a-z//s;print;

Replies are listed 'Best First'.
Re^3: Regex to Truncate URLs Nicely
by Aristotle (Chancellor) on Nov 02, 2002 at 11:42 UTC
    Cause it has to be escaped outside: s!\?.*$!!; The bracketed version occasionally looks less noisy. That's all.

    Makeshifts last the longest.