Changes between Version 41 and Version 42 of Stacomi gettext
- Timestamp:
- Jan 31, 2017 2:03:53 PM (8 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Stacomi gettext
v41 v42 45 45 ce qui va ajouter gettext au 1er match de l'expression régulière précédente 46 46 47 Autre expression régulière 48 (?<=gettext\()\K(.)+?(?=\)) 49 50 Positive Lookbehind (?<=gettext\() 51 Assert that the Regex below matches 52 gettext 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 55 1st Capturing Group (.)+? 56 +? Quantifier — Matches between one and unlimited times, as few times as possible, expanding as needed (lazy) 57 A 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) 59 Positive Lookahead (?=\)) 60 Assert that the Regex below matches 61 \) matches the character ) literally (case sensitive) 62 47 63 48 64 L'appel à tools::update_pkg_po("F:/workspace/stacomir/pkg/stacomir") ne prend que les trucs entre quote, pour extraire tout … … 53 69 str(res) 54 70 #List of 29 55 # $ F:/workspace/stacomir/pkg/stacomi 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" ...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" ... 56 72 # $ 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" ... 57 73 # $ 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" ...