summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/library/scala/util/matching/Regex.scala6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/library/scala/util/matching/Regex.scala b/src/library/scala/util/matching/Regex.scala
index 56c90f1073..fbb525b0e8 100644
--- a/src/library/scala/util/matching/Regex.scala
+++ b/src/library/scala/util/matching/Regex.scala
@@ -16,6 +16,12 @@ import java.util.regex.{Pattern, Matcher}
/** This class provides methods for creating and using regular expressions.
* It is based on the regular expressions of the JDK since 1.4.
*
+ * <p>
+ * You can use special pattern syntax construct <code>(?idmsux-idmsux)</code> to switch
+ * various regex compilation options like <code>CASE_INSENSITIVE</code> or <code>UNICODE_CASE</code>.
+ * See <code>java.util.regex.Pattern</code> javadoc for details.
+ * </p>
+ *
* @author Thibaud Hottelier
* @author Philipp Haller
* @author Martin Odersky