-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
add Regex
documentation
#28703
add Regex
documentation
#28703
Conversation
add `Regex` documentation. (JuliaLang#26919)
dont link to regex docs
base/regex.jl
Outdated
""" | ||
Regex(pattern[, flags]) | ||
|
||
A type representing a regular expression. `Regex`-objects can be used to match strings |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why the hyphen? I don't think it's warranted, and in any case this format is inconsistent with the one used just three lines below.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks for the comment!
base/regex.jl
Outdated
A type representing a regular expression. `Regex`-objects can be used to match strings | ||
with [`match`](@ref) or [`matchall`](@ref). | ||
|
||
`Regex` objects can be created using the [`@r_str`](@ref) string-macro. The |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Here too the hyphen feels odd to me. I'd simply write "string macro" (also two lines below).
removed hyphens
base/regex.jl
Outdated
|
||
`Regex` objects can be created using the [`@r_str`](@ref) string macro. The | ||
`Regex(pattern[, flags])` constructor is usually used if the `pattern` string needs | ||
to be interpolated. See the documentation of the string-macro for details on flags. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You missed the hyphen here :)
i seem to like hyphens....
base/regex.jl
Outdated
Regex(pattern[, flags]) | ||
|
||
A type representing a regular expression. `Regex` objects can be used to match strings | ||
with [`match`](@ref) or [`matchall`](@ref). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
matchall
does not exist anymore.
removed ref to `matchall`
@@ -81,6 +91,8 @@ listed after the ending quote, to change its behaviour: | |||
`\\s`, `\\W`, `\\w`, etc. match based on Unicode character properties. With this option, | |||
these sequences only match ASCII characters. | |||
|
|||
See `Regex` if interpolation is needed. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[`Regex`](@ref)
maybe?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
pushed the update
I had that reference in an earlier commit, but it seems like the ref needs to be added to Thats the reason for ci failures |
Heh, alright lets just remove it then :) |
add
Regex
documentation. (#26919)