Skip to content

Commit

Permalink
fix doctest for @s_str
Browse files Browse the repository at this point in the history
  • Loading branch information
digital-carver committed May 17, 2018
1 parent a0282db commit e56d839
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions base/regex.jl
Original file line number Diff line number Diff line change
Expand Up @@ -257,6 +257,7 @@ string, sequences of the form `\\N` refer to the Nth capture group in the regex,
```jldoctest
julia> msg = "#Hello# from Julia";
julia> replace(msg, r"#(.+)# from (?<from>\\w+)" => s"FROM: \\g<from>; MESSAGE: \\1")
"FROM: Julia; MESSAGE: Hello"
```
Expand Down

0 comments on commit e56d839

Please sign in to comment.