首页 > 解决方案 > how can I make a regex with a range specific to a number [1-7543]?

问题描述

I Tried this for example: ^([1-9]|[1-9][0-9]|[1-9][0-9][0-9]|[1-9][0-9][0-9][0-9)$

However, this covers 1-9999, not sure how can I be specific to that number (7543) as a limit. I am really new to regex.

Any help? thanks!

标签: regex

解决方案


推荐阅读