SciRuby / rubex

rubex - A Ruby-like language for writing Ruby C extensions.
BSD 2-Clause "Simplified" License
451 stars 21 forks source link

Regexp #30

Open tobidelius opened 7 years ago

tobidelius commented 7 years ago

How would one approach regular expressions in Rubex?

Like how would the RubexClass.execute_pattern be defined in Rubex?

def my_method(pattern)
  RubexClass.match(pattern)
  RubexClass.match?(pattern)
end
v0dro commented 6 years ago

I don't understand you correctly. Can you clarify with some more (descriptive) code samples and explanation?