Understanding Julia docs: Where is Base.Regex type documented?

Beginner.

I was hoping to find docs for Base.Regex type and its constructor in the “Base” module.

However I find it here

https://docs.julialang.org/en/v1/base/strings/#Base.@r_str

Even that in a “strings” topic.

Broadly, how do I navigate to the “type” documentation, when it is applicable?

Or if I know a type name, is there a documentation navigation scheme I can use to get there?

Appreciate your time

You should do ?Regex in the REPL for more specific documentation about a certain type, I think.

1 Like

Also, a more complete explanation about how to make and use regular expressions is here:
https://docs.julialang.org/en/v1/manual/strings/#Regular-Expressions-1

There you’ll also find examples about how to use the Regex constructor if you need it. (Except in the case of interpolation, the macro you cited is normally enough.)

1 Like