/(\s+)$/ $num_trailing_spaces=length $1;