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]
In reply to back translating regular expressions by anthonywatson
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |