Module: Erlang::ETF::Extensions::Regexp
- Defined in:
- lib/erlang/etf/extensions/regexp.rb
Overview
regex regex, Source, Options
Regular expressions are expressed by their source binary and PCRE options. Options is a list of atoms representing the PCRE options. For example, regex, <<"^c(a*)t$">>, [caseless] would represent a case insensitive regular epxression that would match "cat". See re:compile/2 for valid options.
See: http://bert-rpc.org/
Instance Method Summary collapse
Instance Method Details
#__erlang_evolve__ ⇒ Object
21 22 23 24 25 26 27 |
# File 'lib/erlang/etf/extensions/regexp.rb', line 21 def __erlang_evolve__ opts = [] opts << :caseless if ( & ::Regexp::IGNORECASE) != 0 opts << :extended if ( & ::Regexp::EXTENDED) != 0 opts << :multiline if ( & ::Regexp::MULTILINE) != 0 ::Erlang::Tuple[:bert, :regex, source, opts].__erlang_evolve__ end |
#__erlang_type__ ⇒ Object
17 18 19 |
# File 'lib/erlang/etf/extensions/regexp.rb', line 17 def __erlang_type__ :bert_regex end |