The matrix search system is very basic, I don’t believe it supports regex searching like that.
What I would do is to create another metadata field that references your digit metadata field, and put something like %metadata_field_digits^notempty:digits%
That way this new metadata field will have “digits” in it if your first field is not empty. Then you do a stored search on your secondary field for the term “digits”.