Regular Expression pattern

You probably want a character class:
/[\s\d]+$/

... to check for any number of spaces or digits in a row.

I didn't test this (and I don't use regex often) but hopefully this
points you in the right direction.

  -- Wes