Why regular expression on numbers? You can select all numbers less than 1000 and greater than 99.
my_array.select { |n| n<1000 && n>99 }
More Related Contents:
- Write regular expressions [closed]
- /^a-eg-h/.match(‘f’) gives null in Ruby
- Regex to match Date
- Difference between \A \z and ^ $ in Ruby regular expressions
- How to match all occurrences of a regex
- Ruby regular expression using variable name
- How do I get the match data for all occurrences of a Ruby regular expression in a string?
- How do I remove emoji from string
- Weird backslash substitution in Ruby
- Valid email address regular expression? [duplicate]
- Extract a substring from a string in Ruby using a regular expression
- Ruby Regular expression to match a url [duplicate]
- How to match all occurrences of a regular expression in Ruby
- Regex to split BBCode into pieces
- What do `?i` and `?-i` in regex mean?
- Confusion with Atomic Grouping – how it differs from the Grouping in regular expression of Ruby?
- Ruby Email validation with regex
- What is a regex to match a string NOT at the end of a line?
- Match a string against multiple patterns
- Matching balanced parenthesis in Ruby using recursive regular expressions like perl
- Interpolating a string into a regex
- Ruby: filter array by regex?
- How to use double brackets in a regular expression?
- How to match something with regex that is not between two special characters?
- ruby 1.9: invalid byte sequence in UTF-8
- Ruby ampersand colon shortcut [duplicate]
- How does object_id assignment work?
- Difference between ‘..’ (double-dot) and ‘…’ (triple-dot) in range generation?
- In Ruby, is there an Array method that combines ‘select’ and ‘map’?
- Combine two Arrays into Hash