in reply to searching backwards in a string
fruitless extraction of trailing whitespace:
/(\s+)$/ $num_trailing_spaces=length $1; [download]