Navigation X
ALERT
Click here to register with a few steps and explore all our cool stuff we have to offer!



 1097

Regex question

by Nameless07 - 27 April, 2019 - 09:58 PM
This post is by a banned member (Nameless07) - Unhide
251
Posts
28
Threads
5 Years of service
#1
Can someone help me to match all numbers between -25 and 1045? 

Thank you very much
This post is by a banned member (Vassilios) - Unhide
Vassilios  
Supreme
270
Posts
38
Threads
5 Years of service
#2
(This post was last modified: 29 April, 2019 - 11:16 PM by Vassilios.)
Code:
^(-2[0-5]|-1[0-9]|[0-9]|[0-9][0-9]|[0-9][0-9][0-9]|10[0-4][0-5])$

Sorry for the late reply. This should work.
[Image: 1724cf64e5e5b1b73c593976bf4643a6.png]
This post is by a banned member (Sartux) - Unhide
Sartux  
Infinity
175
Posts
10
Threads
5 Years of service
#3
(27 April, 2019 - 09:58 PM)Nameless07 Wrote: Show More
Can someone help me to match all numbers between -25 and 1045? 

Thank you very much

Im a bit late to this and Vassilios already gave you the answer, but you might find this site useful in future for making and learning regex: https://regexr.com/
[url=https://regexr.com/][/url]

Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
or
Sign in
Already have an account? Sign in here.


Forum Jump:


Users browsing this thread: 2 Guest(s)