I'd like to make the Regex a little more general.
And also, since I read match in the question, I thought some other people will look for match expression and not test like I did.
In my case I had to match the word right after a pattern similar to yours (number:). Plus there can be multiple whitespaces after the colons
So, my answer is this, if you need to actually match a word, and not test:
'number: 5646 bksfdg df34'.match(/number:\s*([0-9]+)/)
In this way, /s* says to ignore all the whitespaces until the next pattern and ([0-9]+) is the matching group of all the subsequent numbers after the "number:" pattern+
If you need to match a word, as @raina77ow suggested, you could use ([a-z]+) in my regexp
I know this answer more to the title than specifically to the OP, but as I told you I hope this can help others who came here looking for a matching and not testing Regex function