What's my math assignment?
JavaScript (ES7), 138 bytes

F=s=&gt;s.replace(/.*#|(\d+)-?(\d+)? ?(\d|\w*)s?/g,(_,a,b,c)=&gt;b?[for(i of Array(b-a--+1))if(++a*c?(b-a)%c&lt;1:!c||a%2==c&gt;'f')a].join`, `:a||'')




F=s=&gt;s.replace(/.*#|(\d+)-?(\d+)? ?(\d|\w*)s?/g,(_,a,b,c)=&gt;b?[for(i of Array(b-a--+1))if(++a*c?(b-a)%c&lt;1:!c||a%2==c&gt;'f')a].join`, `:a||'')
button.onclick=()=&gt;output.innerHTML=F(range.value)
button, textarea {
  display: block;
  width: 100%;
  margin-bottom: 0.5em;
  box-sizing: border-box;
}
&lt;textarea id="range"&gt;&lt;/textarea&gt;
&lt;button id="button"&gt;submit&lt;/button&gt;
&lt;div id="output"&gt;&lt;/div&gt;