W. eWatson | 28 Aug 07:00
Favicon

Re: Wild Card String Comparison

Timothy Grant wrote:
> On Wed, Aug 27, 2008 at 8:49 PM, W. eWatson <notvalid2 <at> sbcglobal.net> wrote:
>> Is it possible to do a search for a wild card string in another string. For
>> example, I'd like to find "v*.dat" in a string called bingo. v must be
>> matched against only the first character in bingo, and not simply found
>> somewhere in bingo, as might be the case for "*v*.dat".
>> --
>>           Wayne Watson (Watson Adventures, Prop., Nevada City, CA)
>>
>>             (121.015 Deg. W, 39.262 Deg. N) GMT-8 hr std. time)
>>              Obz Site:  39° 15' 7" N, 121° 2' 32" W, 2700 feet
>>
>>                    Web Page: <www.speckledwithstars.net/>
>> --
>> http://mail.python.org/mailman/listinfo/python-list
>>
> Is this what you're looking for?
> 
What's this?
-----------------
> Python 2.5.1 (r251:54863, Jan 17 2008, 19:35:16)
> [GCC 4.0.1 (Apple Inc. build 5465)] on darwin
> Type "help", "copyright", "credits" or "license" for more information.
>>>> x = 'the quick brown fox'
------------------
>>>> 'the' in x
> True
>>>> 'qui' in x
> True
>>>> 'jumped' in x
(Continue reading)

Timothy Grant | 28 Aug 08:18

Re: Wild Card String Comparison

On Wed, Aug 27, 2008 at 10:00 PM, W. eWatson <notvalid2 <at> sbcglobal.net> wrote:
> Timothy Grant wrote:
>>
>> On Wed, Aug 27, 2008 at 8:49 PM, W. eWatson <notvalid2 <at> sbcglobal.net>
>> wrote:
>>>
>>> Is it possible to do a search for a wild card string in another string.
>>> For
>>> example, I'd like to find "v*.dat" in a string called bingo. v must be
>>> matched against only the first character in bingo, and not simply found
>>> somewhere in bingo, as might be the case for "*v*.dat".
>>> --
>>>          Wayne Watson (Watson Adventures, Prop., Nevada City, CA)
>>>
>>>            (121.015 Deg. W, 39.262 Deg. N) GMT-8 hr std. time)
>>>             Obz Site:  39° 15' 7" N, 121° 2' 32" W, 2700 feet
>>>
>>>                   Web Page: <www.speckledwithstars.net/>
>>> --
>>> http://mail.python.org/mailman/listinfo/python-list
>>>
>> Is this what you're looking for?
>>
> What's this?
> -----------------
>>
>> Python 2.5.1 (r251:54863, Jan 17 2008, 19:35:16)
>> [GCC 4.0.1 (Apple Inc. build 5465)] on darwin
>> Type "help", "copyright", "credits" or "license" for more information.
>>>>>
(Continue reading)


Gmane