Mention (?m) in the comment about posix_syntax == false.
Change-Id: Icbf0f353cea933442970f697704594d10f602216
Reviewed-on: https://code-review.googlesource.com/33670
Reviewed-by: Paul Wankadia <[email protected]>
diff --git a/re2/re2.h b/re2/re2.h
index 37ab8f1..2a012e1 100644
--- a/re2/re2.h
+++ b/re2/re2.h
@@ -549,8 +549,9 @@
// with (?i) unless in posix_syntax mode)
//
// The following options are only consulted when posix_syntax == true.
- // (When posix_syntax == false these features are always enabled and
- // cannot be turned off.)
+ // When posix_syntax == false, these features are always enabled and
+ // cannot be turned off; to perform multi-line matching in that case,
+ // begin the regexp with (?m).
// perl_classes (false) allow Perl's \d \s \w \D \S \W
// word_boundary (false) allow Perl's \b \B (word boundary and not)
// one_line (false) ^ and $ only match beginning and end of text