[^\n] is a kind of regular expression.
-
[...]: it matches a nonempty sequence of characters from the scanset (a set of characters given by...). -
^means that the scanset is "negated": it is given by its complement. -
^\n: the scanset is all characters except\n…
Top comments (0)