Skip to content
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

Merged
merged 7 commits into from
Aug 23, 2018
Merged

add Regex documentation #28703

merged 7 commits into from
Aug 23, 2018

Conversation

ChristianKurz
Copy link
Contributor

add Regex documentation. (#26919)

add `Regex` documentation. (JuliaLang#26919)
@ChristianKurz ChristianKurz changed the title Update regex.jl add Regex documentation Aug 16, 2018
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
Copy link
Contributor

@waldyrious waldyrious Aug 17, 2018

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.

Copy link
Contributor Author

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
Copy link
Contributor

@waldyrious waldyrious Aug 17, 2018

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.
Copy link
Contributor

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).
Copy link
Member

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`
@fredrikekre fredrikekre added docs This change adds or pertains to documentation backport pending 1.0 labels Aug 18, 2018
@KristofferC KristofferC mentioned this pull request Aug 19, 2018
@@ -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.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[`Regex`](@ref)

maybe?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

pushed the update

@ChristianKurz
Copy link
Contributor Author

ChristianKurz commented Aug 20, 2018

I had that reference in an earlier commit, but it seems like the ref needs to be added to doc/src/base/strings.md and i didn't know if that file is generated or if it should be edited manually by me.

Thats the reason for ci failures

@KristofferC
Copy link
Member

Heh, alright lets just remove it then :)

@KristofferC KristofferC merged commit 31c9ae9 into JuliaLang:master Aug 23, 2018
KristofferC pushed a commit that referenced this pull request Aug 23, 2018
add `Regex` documentation. (#26919)

(cherry picked from commit 31c9ae9)
staticfloat pushed a commit that referenced this pull request Aug 24, 2018
add `Regex` documentation. (#26919)
KristofferC pushed a commit that referenced this pull request Sep 8, 2018
add `Regex` documentation. (#26919)

(cherry picked from commit 31c9ae9)
KristofferC pushed a commit that referenced this pull request Sep 8, 2018
add `Regex` documentation. (#26919)

(cherry picked from commit 31c9ae9)
KristofferC pushed a commit that referenced this pull request Feb 11, 2019
add `Regex` documentation. (#26919)

(cherry picked from commit 31c9ae9)
@ChristianKurz ChristianKurz deleted the patch-24 branch April 26, 2019 13:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
docs This change adds or pertains to documentation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants