title: How to match a string, but case-insensitively?
body: <p>Let's say that I want to match "beer", but don't care about case sensitivity. </p>
  
  <p>Currently I am defining a token to be ('b'|'B' 'e'|'E'  'e'|'E' 'r'|'R') but I have a lot of such and don't really want to handle 'verilythisisaverylongtokenindeedomyyesitis'.</p>
  
  <p>The antlr wiki <a href="http://web.archive.org/web/20130120150414/http://www.antlr.org/wiki/pages/viewpage.action?pageId=1782" rel="noreferrer">seems to suggest that it can't be done</a> (in antlr) ... but I just wondered if anyone had some clever tricks ...</p>