in reply to Re: substr regex alternative
in thread substr regex alternative

With the thin requirements, maybe even go a bit smaller.

print$string=~/\w+$/g