anthonywatson has asked for the wisdom of the Perl Monks concerning the following question:
Say I have a regular expression like:
This can match 4 possible strings ACAC, ACAT, ATAC, ATAT, For any given regular expression I would like a script that lists all possible strings it could match. Such a script would have utility in "back translating" amino acids to proteins, or DNA sequences with SNPs to possible exact sequences. I do not see an easy way to accomplish this, and have to think the problem has been solved 100's of times. Thanks in advance for helpA[CT]A[CT]
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: back translating regular expressions
by Roy Johnson (Monsignor) on Mar 03, 2005 at 04:27 UTC | |
by QM (Parson) on Mar 03, 2005 at 20:49 UTC | |
Re: back translating regular expressions
by Tanktalus (Canon) on Mar 03, 2005 at 04:15 UTC | |
Re: back translating regular expressions
by Fletch (Bishop) on Mar 03, 2005 at 02:07 UTC | |
by blokhead (Monsignor) on Mar 03, 2005 at 05:27 UTC | |
by Anonymous Monk on Mar 03, 2005 at 10:05 UTC | |
Re: back translating regular expressions
by manav (Scribe) on Mar 03, 2005 at 05:34 UTC | |
Re: back translating regular expressions
by perlfan (Vicar) on Mar 03, 2005 at 18:47 UTC |
Back to
Seekers of Perl Wisdom