Sign in to follow this  
Nameless07

Regex question

Recommended Posts

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

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this