0

When you use a wildcard tag search on questions with any perl* tag, it erroneously includes the tag in the search set:

perl* tag search images

Notice the regex tag at the bottom. It should not be there, because contrary to popular belief, perl != regex. :)

8
  • 2
    perl-regex is a synonym of regex.
    – Tim Stone
    Commented Jul 23, 2013 at 17:06
  • 2
    @TimStone That’s um, nuts.
    – tchrist
    Commented Jul 23, 2013 at 17:06
  • @tchrist you are thinking about synonyms backwards. They're one-way relationships, not two-way.
    – Joe
    Commented Jul 23, 2013 at 17:15
  • @Joe That may well be, but this is an unfortunate situation that makes such searches a big pain in the butt.
    – tchrist
    Commented Jul 23, 2013 at 17:34
  • Is there no way to say "not ..." in search?
    – Joe
    Commented Jul 23, 2013 at 17:51
  • @Joe -[regex]
    – Doorknob
    Commented Jul 23, 2013 at 21:39
  • @Doorknob The problem is that that doesn’t work in the “favorite tags” selection. If I’ve selected perl*, I shouldn’t therefore get regex too.
    – tchrist
    Commented Jul 23, 2013 at 21:40
  • 1
    Unfortunately that doesn't seem to work with the wildcard; still get regex-not-regular-perl in the search.
    – Joe
    Commented Jul 23, 2013 at 21:41

1 Answer 1

3

There is a tag - which is a synonym of , as can be seen on its synonym page

perl* will catch perl-regex which shows up as regex due to the synonym relationship.

4
  • How can this be a good thing? I’m pretty sure there are non-Perl regexes in existence.
    – tchrist
    Commented Jul 23, 2013 at 17:07
  • 1
    @tchrist - Did I say it was a good thing? Synonyms are suggested and accepted by the community.
    – Oded StaffMod
    Commented Jul 23, 2013 at 17:07
  • Yeah, ok. Somebody made a mistake then.
    – tchrist
    Commented Jul 23, 2013 at 17:07
  • 4
    No, it's not a mistake. The point of the synonym for perl-regex mapping to regex is that anything tagged perl-regex gets moved to regex, which is fine. regex is not assumed to be related to perl in any way. It just happens to come up with the wildcard search; perhaps that should be fixed, but I'm not sure it should be - in other similar cases you might prefer the synonym to be included.
    – Joe
    Commented Jul 23, 2013 at 17:09

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .