Changes between Version 41 and Version 42 of Stacomi gettext


Ignore:
Timestamp:
Jan 31, 2017 2:03:53 PM (8 years ago)
Author:
cedric
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Stacomi gettext

    v41 v42  
    4545ce qui va ajouter gettext au 1er match de l'expression régulière précédente 
    4646 
     47Autre expression régulière 
     48(?<=gettext\()\K(.)+?(?=\)) 
     49 
     50Positive Lookbehind (?<=gettext\() 
     51Assert that the Regex below matches 
     52gettext matches the characters gettext literally (case sensitive) 
     53\( matches the character ( literally (case sensitive) 
     54\K resets the starting point of the reported match. Any previously consumed characters are no longer included in the final match 
     551st Capturing Group (.)+? 
     56+? Quantifier — Matches between one and unlimited times, as few times as possible, expanding as needed (lazy) 
     57A repeated capturing group will only capture the last iteration. Put a capturing group around the repeated group to capture all iterations or use a non-capturing group instead if you're not interested in the data 
     58. matches any character (except for line terminators) 
     59Positive Lookahead (?=\)) 
     60Assert that the Regex below matches 
     61\) matches the character ) literally (case sensitive) 
     62 
    4763 
    4864L'appel à tools::update_pkg_po("F:/workspace/stacomir/pkg/stacomir") ne prend que les trucs entre quote, pour extraire tout  
     
    5369str(res) 
    5470#List of 29 
    55 # $ F:/workspace/stacomir/pkg/stacomir/R/Bilan_carlot.r                 :Class 'xgettext'  chr [1:13] "get(\"msg\", envir_stacomi)$Bilan_carlot.1" "get(\"msg\", envir_stacomi)$ref.1" "TRUE" "get(\"msg\", envir_stacomi)$ref.2" ... 
     71# $ F:/workspace/stacomir/pkg/stacomin positive lookbehind. la r/R/Bilan_carlot.r                 :Class 'xgettext'  chr [1:13] "get(\"msg\", envir_stacomi)$Bilan_carlot.1" "get(\"msg\", envir_stacomi)$ref.1" "TRUE" "get(\"msg\", envir_stacomi)$ref.2" ... 
    5672# $ F:/workspace/stacomir/pkg/stacomir/R/Bilan_poids_moyen.r            :Class 'xgettext'  chr [1:19] "get(\"msg\", envir_stacomi)$Bilan_poids_moyen.1" "get(\"msg\", envir_stacomi)$Bilan_poids_moyen.2" "get(\"msg\", envir_stacomi)$ref.9" "TRUE" ... 
    5773# $ F:/workspace/stacomir/pkg/stacomir/R/Bilan_stades_pigm.r            :Class 'xgettext'  chr [1:6] "get(\"msg\", envir_stacomi)$Bilan_stades_pigm.1" "get(\"msg\", envir_stacomi)$ref.1" "TRUE" "get(\"msg\", envir_stacomi)$ref.5" ...