How to cache all numeric paths?

I want to cache all pages like

https://example.com/1234
https://example.com/523
https://example.com/633

What can I do in my Page Rules?

I have tried

example.com/\d+

OR

example.com/1*
...
example.com/9*

But it’s not working.

Thanks for any kind of advices. Please help!

Pages rules probably aren’t the correct thing. Have you tried Cache Rules?

May I ask how to do that?

Check out the documentation