james_027 wrote:
> Hi all,
>
>> This is fine IMO since the OP didn't specify the opposite.
>>
>
> Thanks for all your replies, though I don't understand quite well the
> going argument? What do you mean when you say "the OP didn't specify
> the opposite"?
>
> There reason for using regex is beca
Hi all,
> This is fine IMO since the OP didn't specify the opposite.
>
Thanks for all your replies, though I don't understand quite well the
going argument? What do you mean when you say "the OP didn't specify
the opposite"?
There reason for using regex is because I am going to use it in
Django'
Carsten Haese wrote:
> On Wed, 2007-09-26 at 15:13 -0300, Pablo Ziliani wrote:
>> Carsten Haese wrote:
>>> Unfortunately, that also matches margarine, mayonnaise, and octopus,
>>> just to name a few ;-)
>> (and so does the solution you sent before :)
>
> No, it doesn't.
>
s = set(['jan', 'fe
On Wed, 2007-09-26 at 15:13 -0300, Pablo Ziliani wrote:
> Carsten Haese wrote:
> > Unfortunately, that also matches margarine, mayonnaise, and octopus,
> > just to name a few ;-)
>
> (and so does the solution you sent before :)
No, it doesn't.
>>> s = set(['jan', 'feb', 'mar', 'apr', 'may', 'jun
Carsten Haese wrote:
> On Wed, 2007-09-26 at 12:49 -0400, Steve Holden wrote:
>> james_027 wrote:
>>> hi,
>>>
>>> how do I regex that could check on any of the value that match any one
>>> of these ... 'jan', 'feb', 'mar', 'apr', 'may', 'jun', 'jul', 'aug',
>>> 'sep', 'oct', 'nov', 'dec'
>>>
>>> Th
Carsten Haese wrote:
> On Wed, 2007-09-26 at 12:49 -0400, Steve Holden wrote:
>> james_027 wrote:
>>> hi,
>>>
>>> how do I regex that could check on any of the value that match any one
>>> of these ... 'jan', 'feb', 'mar', 'apr', 'may', 'jun', 'jul', 'aug',
>>> 'sep', 'oct', 'nov', 'dec'
>>>
>>> Th
On Wed, 2007-09-26 at 12:49 -0400, Steve Holden wrote:
> james_027 wrote:
> > hi,
> >
> > how do I regex that could check on any of the value that match any one
> > of these ... 'jan', 'feb', 'mar', 'apr', 'may', 'jun', 'jul', 'aug',
> > 'sep', 'oct', 'nov', 'dec'
> >
> > Thanks
>
> >>> patr =
Carsten Haese wrote:
> On Wed, 2007-09-26 at 15:42 +, james_027 wrote:
>
>> hi,
>>
>> how do I regex that could check on any of the value that match any one
>> of these ... 'jan', 'feb', 'mar', 'apr', 'may', 'jun', 'jul', 'aug',
>> 'sep', 'oct', 'nov', 'dec'
>>
>
> Why regex? You can si
james_027 wrote:
> hi,
>
> how do I regex that could check on any of the value that match any one
> of these ... 'jan', 'feb', 'mar', 'apr', 'may', 'jun', 'jul', 'aug',
> 'sep', 'oct', 'nov', 'dec'
>
> Thanks
>>> patr = re.compile('jan|feb|mar|apr|may|jun|jul|aug|sep|nov|oct|dec')
>>> patr.mat
On Wed, 2007-09-26 at 15:42 +, james_027 wrote:
> hi,
>
> how do I regex that could check on any of the value that match any one
> of these ... 'jan', 'feb', 'mar', 'apr', 'may', 'jun', 'jul', 'aug',
> 'sep', 'oct', 'nov', 'dec'
Why regex? You can simply check if the given value is contained
10 matches
Mail list logo