more useful options | |
PerlMonks |
Re: generate regular expressionby injunjoel (Priest) |
on Mar 30, 2006 at 18:53 UTC ( [id://540239]=note: print w/replies, xml ) | Need Help?? |
Greetings, 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 idiom. Untested Idea! Is that sort of what you were thinking of? -InjunJoel
"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
In Section
Seekers of Perl Wisdom
|
|