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

cracked.io | Best Forum Around | Free Premium Accounts




 1599

Regex question

by Nameless07 - 24 April, 2019 - 02:25 AM
This post is by a banned member (Nameless07) - Unhide
252
Posts
28
Threads
5 Years of service
#1
Im all new to regex so i dont really know how to do this, but how can i match any number between 5115 and 5121? Thank you in advance
This post is by a banned member (textverified) - Unhide
72
Posts
1
Threads
5 Years of service
#2
(24 April, 2019 - 02:25 AM)Nameless07 Wrote: Show More
Im all new to regex so i dont really know how to do this, but how can i match any number between 5115 and 5121? Thank you in advance

51(1[5-9]|2[0-1])

But really, use ordinal comparison... 5115 <= x && x <= 5121
This post is by a banned member (Nameless07) - Unhide
252
Posts
28
Threads
5 Years of service
#3
(24 April, 2019 - 04:16 AM)textverified Wrote: Show More
(24 April, 2019 - 02:25 AM)Nameless07 Wrote: Show More
Im all new to regex so i dont really know how to do this, but how can i match any number between 5115 and 5121? Thank you in advance

51(1[5-9]|2[0-1])

But really, use ordinal comparison... 5115 <= x && x <= 5121

Thank you very much
This post is by a banned member (mnwd) - Unhide
mnwd  
Registered
68
Posts
4
Threads
4 Years of service
#4
This site is very helpful: https://regexr.com/
[WTS] [AUTOBUY] Full-scale Discord Service and Token/Account provider
Autobuy: meanwood.io
Newschannel: t.me/meanwood_news
Support: https://meanwood.io/contact
Reviews: Coinpayments

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: 1 Guest(s)