Skip to content

Commit

Permalink
Note regex.new requires a full pattern
Browse files Browse the repository at this point in the history
  • Loading branch information
Sainan committed Oct 31, 2024
1 parent c8af7da commit b81acda
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/Runtime Environment/Regex.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ The Regex module is available via `require "pluto:regex"` and provides [Soup's f
### `regex.new`
Parses a pattern and creates an instance for it.
#### Parameters
1. The regex to be *compiled*.
1. The regex to be *compiled*. Note that this must be a full pattern with a start and end delimiter (commonly `/`). Flags may optionally be present after the end delimiter.
#### Returns
A pattern instance.

Expand Down

0 comments on commit b81acda

Please sign in to comment.