florian is a user on bsd.network. You can follow them or interact with them if you have an account anywhere in the fediverse. If you don't, you can sign up here.
florian @florian

@mwlucas page 49 of "The period represents zero or more of something, and the asterisk matches any character [...]"
I think this should be fixed in the 2nd edition.

@florian ? The period does represent zero or more of something. And the asterisk matches any character. ?

@mwlucas @florian I thought it was the reverse. Dot matches any character and splat means "zero or more of the previous"

@kurtm @mwlucas @florian Except the newline... re_format(7) is referenced on OpenBSD's ed(1) page.

@mwlucas @kurtm I can bring my printed version to make sure you have a red pen to correct it. 😛

@kurtm @florian @mwlucas

Are we talking regular expression ?
if so →
re_format(7):

. Matches any single character that is not a newline

* Matches the single character regular expression or subexpression immediately preceding it zero or more times.

@mwlucas no, it's the other way around. The period matches any character, the asterisk represents zero or more. it .* not *.

@florian Let's just go with "regular expressions are a fail."