> "egrep '[<br>]{5,}' p3L..." prevents the shell from trying to interpret
> your query but still has a bad query, as it looks for five or more
> consecutive occurrences of any character listed between the angle
> brackets, so "<b>brr</b>" will match up to the slash.

Between the square brackets ("[" and "]"), sorry.
Angle brackets ("[<" and ">") have no special meaning in PCRE (though
they're word boundaries in vim's very-magic regexps) while square
brackets note character classes as noted in "man perlre"

(I always chuckle when I see them called that; makes me want to do
something like '[[:paladin:]]*?' ... or in vim, '\v[[:paladin:]]{-}'
which looks for a very magical member of the "paladin" class in a group
that is not greedy.  Too bad I can't also specify race.  Maybe I can
create a race condition?)

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to