|The stupid question is the question not asked|
Re: generate regular expressionby injunjoel (Priest)
|on Mar 30, 2006 at 18:53 UTC||Need Help??|
In your example you have two different situations:
The "and" situation "2 CAC and 2 TTT" in which case its really two seperate searches.
And the "single" search situation "1 A|T CAC", "2 C|A TTT T|G".
If your search criteria is submitted as you have specified you could split the query on "and" or "or" to handle your first situation. Once split, capture out the count criteria and test with the scalar return value from your array of matches using the
Is that sort of what you were thinking of?
grep was not what I wanted after all...
"I do not feel obliged to believe that the same God who endowed us with sense, reason and intellect has intended us to forego their use." -Galileo