File tree Expand file tree Collapse file tree 1 file changed +12
-3
lines changed Expand file tree Collapse file tree 1 file changed +12
-3
lines changed Original file line number Diff line number Diff line change 3
3
# SPDX-FileCopyrightText: 2012 Plataformatec
4
4
5
5
defmodule Regex do
6
+ # TODO: Remove the "Starting from Erlang/OTP 28" part in the Modifiers'
7
+ # section once Erlang/OTP 28+ is exclusively supported.
6
8
@ moduledoc ~S"""
7
9
Provides regular expressions for Elixir.
8
10
@@ -76,9 +78,16 @@ defmodule Regex do
76
78
77
79
* `:caseless` (i) - adds case insensitivity
78
80
79
- * `:dotall` (s) - causes dot to match newlines and also set newline to
80
- anycrlf; the new line setting can be overridden by setting `(*CR)` or
81
- `(*LF)` or `(*CRLF)` or `(*ANY)` according to `:re` documentation
81
+ * `:dotall` (s) - causes dot to match newlines and also sets newline to
82
+ `(*ANYCRLF)`.\
83
+ The new line setting, as described in the [`:re` documentation](`:re`),
84
+ can be overridden by starting the regular expression pattern with:
85
+ * `(*CR)` - carriage return
86
+ * `(*LF)` - line feed
87
+ * `(*CRLF)` - carriage return, followed by line feed
88
+ * `(*ANYCRLF)` - any of the three above
89
+ * `(*ANY)` - all Unicode newline sequences
90
+ * _Starting from Erlang/OTP 28, `(*NUL)` - the NUL character (binary zero)_
82
91
83
92
* `:multiline` (m) - causes `^` and `$` to mark the beginning and end of
84
93
each line; use `\A` and `\z` to match the end or beginning of the string
You can’t perform that action at this time.
0 commit comments