10

Currently there are two questions saying that you can do what I want:

This works fine when I use -[python] [python-3.x]. However when wanting to get most Python tags except ones tagged [python], it doesn't work. Doing -[python] [python-*] expands to [python-3.x] or [python-2.7] or [python-2.6] -[python], which contains questions tagged [python].

How can I search for all questions tagged; [python-2.6], [python-2.7], or [python-3.x], where none of the questions contain [python]?

3 Answers 3

8

You can do it using parentheses with spaces around wildcarded tag. E.g.:

0
3

With the addition of there is another way to be able to do this.

Going in the custom filter page and filter by the following tags: not python and python-3.x or not python and python-2.x. This will create this filter.


Credit goes to @Laurel.

2

If you don't mind that results can be stale for up to 7 days, you can leverage SEDE.

I have created this query that let you include tags (wildcard) and exclude a tag.

select distinct top 100 
       p.id as [Post Link]
     , creationdate
from posts p
inner join posttags pt on pt.postid = p.id
inner join tags t on t.id = pt.tagid
and t.tagname like ##include:string## + '%'
and p.tags not like '%<' + ##exclude:string##  + '>%'
order by p.creationdate desc 

When you run this today this will be your result:

python questions

Keep in mind SEDE is only update once a week, on Sunday. If you want to try and create your own queries you might want to check the awesome tutorial.

You must log in to answer this question.

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