From f64e8df4866056444c44505f771397e40ea0fed1 Mon Sep 17 00:00:00 2001 From: kozbial Date: Mon, 26 Jul 2021 15:26:16 -0700 Subject: [PATCH] Update wording --- scripts/goog_module/convert-file.sh | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/scripts/goog_module/convert-file.sh b/scripts/goog_module/convert-file.sh index 9f8ea63ee..0246be0be 100755 --- a/scripts/goog_module/convert-file.sh +++ b/scripts/goog_module/convert-file.sh @@ -18,9 +18,10 @@ # This command does an in-place search-and-replace. The global ("/g") modifier # causes it to replace all occurrences, rather than only the first match. # 2. perl -ne 'print m/regex/modifiers' -# This command returns the all regex matches. If the global ("/g") modifier is -# specified, then the capture group "()" is not necessary and it will return -# all matches, rather than only the first match. +# This command returns a string containing the regex match. The regex must +# contain a capture group "()", unless the global ("\g") modifier is +# specified. This will return the first match, unless the global modifier is +# specified, in which case, it will return all matches. # 3. perl -nle 'print $& while m{regex}modifiers' # Similar to (2), but returns regex matches separated by newlines. # The "m{regex}modifiers" is equivalent to "m/regex/modifiers" syntax.