How does the regular expression ‘(?<=#)[^#]+(?=#)’ work?
问题 I have the following regex in a C# program, and have difficulties understanding it: (?<=#)[^#]+(?=#) I\'ll break it down to what I think I understood: (?<=#) a group, matching a hash. what\'s `?<=`? [^#]+ one or more non-hashes (used to achieve non-greediness) (?=#) another group, matching a hash. what\'s the `?=`? So the problem I have is the ?<= and ?< part. From reading MSDN, ?<name> is used for naming groups, but in this case the angle bracket is never closed. I couldn\'t find ?= in the