Currently rejected at parse time (see RegexParser.scala group-header parsing, the case _ => unsupported("flag group") fallthrough).
Case-insensitivity ((?i)) is probably the most commonly needed one — could plausibly be implemented at the CharSet/Chars level by expanding each literal/range into its case-folded union at parse time, without touching the core Regex/Subset algebra. Multiline ((?m)) and dotall ((?s)) depend on anchor and .-matching support respectively.
Currently rejected at parse time (see
RegexParser.scalagroup-header parsing, thecase _ => unsupported("flag group")fallthrough).Case-insensitivity (
(?i)) is probably the most commonly needed one — could plausibly be implemented at theCharSet/Charslevel by expanding each literal/range into its case-folded union at parse time, without touching the coreRegex/Subsetalgebra. Multiline ((?m)) and dotall ((?s)) depend on anchor and.-matching support respectively.