Ruby where column is alphanumeric
<p>I have a table of cards. I would like to do a query that filters the elements to those with a title that has English alphanumeric characters, i.e. A-Z or 0-9.</p>

<p>How would I go about doing this?</p>

<p>I tried <code>Card.where(title: )</code>. The problem is that this only appears to do direct comparisons. I believe I need to apply some regex parameter. Is this possible?</p>

<p>Similarly, is there an easy way to pass a method to the <code>where</code> function with which I can do all the logic, such as <code>Card.where(title: myCheckerMethod)</code>?</p>