php variables question
<p>Is it possible to create a variable with a reg expression of some sort or some other type of code that might complete the below task?</p>

<p>For instance, the data in var test = parta but could also be equal to partm. 
Note i don't want an array... </p>

<p>I'm using this in a sql search, but I have 1000s of different models and series and only want to return certain series of models without returning series similar to the input... </p>

<p>Is there something that will allow that fifth character to be a list of desired characters...?</p>

<p>Another example 
i have model </p>

<p>two models in same series</p>

<p>515-n</p>

<p>515m</p>

<p>model in different series
1515</p>

<p>I don't want to return the 1515 if im searching the 515 series...</p>

<p>Note that this isn't the only combination... so the search cannot be specified to just this one... needs to be generic result.</p>
