Method: Regexp::MatchLength#to_re
- Defined in:
- lib/regexp_parser/expression/methods/match_length.rb
#to_re ⇒ Object
65 66 67 |
# File 'lib/regexp_parser/expression/methods/match_length.rb', line 65 def to_re /(?:#{reify.call}){#{min_rep},#{max_rep unless max_rep == Float::INFINITY}}/ end |