Wildcard String Comparisons: Set Pattern to a Wildcard Source

2010-10-05 Thread chaoticcran...@gmail.com
So, I have a rather tricky string comparison problem: I want to search for a set pattern in a variable source. To give you the context, I am searching for set primer sequences within a variable gene sequence. In addition to the non-degenerate A/G/ C/T, the gene sequence could have degenerate bases

Re: Wildcard String Comparisons: Set Pattern to a Wildcard Source

2010-10-05 Thread chaoticcran...@gmail.com
On Oct 5, 3:38 pm, MRAB wrote: > On 05/10/2010 20:03, chaoticcran...@gmail.com wrote: > > > > > So, I have a rather tricky string comparison problem: I want to search > > for a set pattern in a variable source. > > > To give you the context, I am searching for

Re: Wildcard String Comparisons: Set Pattern to a Wildcard Source

2010-10-05 Thread chaoticcran...@gmail.com
Ah, very good, it's working perfectly now. Thank you so much for your help - regular expressions are very powerful! On Oct 5, 4:26 pm, MRAB wrote: > [snip] > > Additional: I forgot to mention that you should understand the > difference between the .match() and .search() mthods. .match() is > anc