Not really familiar with regex.
I need to get the numbers from 01 to 99. Any ideas? Thanks.
I need to get the numbers from 01 to 99. Any ideas? Thanks.
![[Image: OOFlLY4.png]](https://i.imgur.com/OOFlLY4.png)
|
Help
Regex int from 01 to 99? |
(Nov 1, 2015 01:30 PM)Ðr1ps Wrote: Not really familiar with regex. what do you mean "get the numbers" why not just do a simple loop dim los as new list of string for i as integer = 1 to 99 step 1 console.writeline(i) los.add(i) next end (Nov 1, 2015 01:33 PM)Who Soup Wrote: what do you mean "get the numbers" How do you know what language I'm writing this in lol. I just need the regex to allow from the said numbers. ![]() (Nov 1, 2015 01:33 PM)Who Soup Wrote: what do you mean "get the numbers" How can you suggest a solution when you don't even know the context of ops question?
Just googling your exact question "regex 01 to 99", I got several good answers, mostly from stack overflow.
https://stackoverflow.com/questions/1121...s-as-00-99 Also, checking the regular expression website for numeric ranges: http://www.regular-expressions.info/numericranges.html
@Drips, show me what you're trying to match specially. For Regex, numbers is usually, \d or [0-9], then you'd need quantifiers.
So, \d+ would match one or more digits. \d{1,2} would match any one or two digit number etc. Like I said its better if you show us the pattern you're trying to match or what you're trying to accomplish all together. (Nov 1, 2015 01:44 PM)+Haze Wrote: @Drips, show me what you're trying to match specially. For Regex, numbers is usually, \d or [0-9], then you'd need quantifiers. It's pretty simple actually, a couple examples: (09) (21) Including the parenthesis but I assume I can just add it on the outside and include the regex inside. ![]() (Nov 1, 2015 01:53 PM)+Haze Wrote: Here you go. Will have a look, thanks ![]() |
|
|
| Possibly Related Threads... | |||
| Thread / Author | Replies | Views | Last Post |
| [Help] by mrgoodcatOct 1, 2016 08:46 AM | 0 | 89 |
Oct 1, 2016 08:46 AM Last Post: mrgoodcat |
| [Assembly] by gamg7May 17, 2016 09:09 PM | 1 | 220 |
May 17, 2016 09:09 PM Last Post: brownclown |
| [Assembly] by c0mputer-fr0dOct 20, 2012 08:34 PM | 10 | 364 |
Oct 20, 2012 08:34 PM Last Post: c0mputer-fr0d |