ProgrammerHumor

willTheCompilerComplain

[deleted]

Reddit

Discussion

Bright-Historian-216
:cp::lua::py:

??? how is this programmer humor? this is linguistics, and not even humor, this is just IPA spelling of "double-U"

2 hours ago
sathdo
:j::g::c:

It looks similar to a regular expression that matches a capital letter "W" followed directly by any character in the set [d^blju:]

2 hours ago
Bright-Historian-216
:cp::lua::py:

ohhh, goddamn regex. wait, ^ is interpreted literally when it's not directly after "["? huh, interesting.

2 hours ago
sathdo
:j::g::c:

That is correct for PCRE.

From the Characters and Metacharacters section of the PCRE spec:

^      negate the class, but only if the first character

13 minutes ago