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

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

2010-10-05 Thread Arnaud Delobelle
"chaoticcran...@gmail.com" writes: > 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/

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

2010-10-05 Thread MRAB
[snip] Additional: I forgot to mention that you should understand the difference between the .match() and .search() mthods. .match() is anchored to the starting position, so you'll want to use .search() instead. -- http://mail.python.org/mailman/listinfo/python-list

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

2010-10-05 Thread MRAB
On 05/10/2010 21:06, chaoticcran...@gmail.com wrote: 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

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

2010-10-05 Thread Tim Chase
On 10/05/10 15:06, chaoticcran...@gmail.com wrote: 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 fo

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 set primer sequences > > within a var

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

2010-10-05 Thread MRAB
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 set primer sequences within a variable gene sequence. In addition to the non-degenerate

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