module TranslationIO::Extractor
Constants
- GETTEXT_REGEXP
- REGEXP_1
- REGEXP_2
- REGEXP_2B
- REGEXP_3
- REGEXP_INSIDE_1
visual: www.debuggex.com/r/fYSQ-jwQfTjhhE6T .*? is non-greedy (lazy) match : stackoverflow.com/a/1919995/1243212
- REGEXP_INSIDE_2
- REGEXP_INSIDE_2B
- REGEXP_INSIDE_3
Public Class Methods
extract(code_to_parse)
click to toggle source
# File lib/translation_io/extractor.rb, line 17 def self.extract(code_to_parse) code_to_parse.scan(GETTEXT_REGEXP) end