I have seen How do I look up man page references with square brackets?. The questioner gives the example of gittutorial(7) and being able to access it by man 7 gittutorial.
When I look at man regex, the top line has:
REGEX(7) Linux Programmer's Manual REGEX(7)
Now this man page is too difficult for me, so when I see:
AUTHOR
This page was taken from Henry Spencer's regex package.
SEE ALSO
grep(1), regex(3)
POSIX.2, section 2.8 (Regular Expression Notation).
I try man 3 regex but that gives me:
[06:46 PM] ~ $ man 3 regex
No manual entry for regex in section 3
[06:46 PM] ~ $
What is the correct way to access regex(3)?
man 7 regex works for regex(7), man 4 tty works for tty(4) and man 8 updatedb works for updatedb(8).