There is a bot that parses the site and displays the order status. Order number -9 digits.

How can you extract 9 digits in order in a sentence, for example:

"Find me order number 123456789"

If you just enter 123456789 -the function works, the regular catch catches 9 digits and passes it to the function.

And how to extract the same 9 digits (and there should be exactly 9) from a sentence, possibly separated by commas, I don’t know.

if re.search (r '(^ \ d [0-9] {8} \ b)', message.text): return search (message) so I figured out how to pick up 9 digits, but only if 9 digits are entered and all

100parik2021-02-25 08:15:04