Re: A vote for re scanner

From: Alex Martelli (aleaxit_at_yahoo.com)
Date: 11/16/03


Date: Sun, 16 Nov 2003 12:01:03 GMT

Fredrik Lundh wrote:

> Alex Martelli wrote:
>
>> Wade Leftwich wrote:
>> ...
>> > A scanner is constructed from a regex object and a string to be
>> > scanned. Each call to the scanner's search() method returns the next
>> > match object of the regex on the string. So to work on a string that
>> > has multiple matches, it's the bee's roller skates.
>>
>> ...if that method's name was 'next' (and an appropriate __iter__
>> also present) it might be even cooler, though...
>
> re.finditer

Yep. So the scanner isn't warranted any longer, right?

Alex



Relevant Pages

  • Re: serial key input support
    ... I also think Regmon/Filemon will be the friends in the investigation to catch missing components. ... > Hi Alex, ... > with COM1 and the baud rate of 9600, the scanner works in notepad fine. ... >> I can read the scanned barcode and the scanner works all over fine. ...
    (microsoft.public.windowsxp.embedded)
  • Re: Happy New Year, everybody!
    ... >Hello Alex, ... >> Hopefully its a cooler and wetter one. ... Lovely snow, and a balmy -5°. ...
    (comp.dsp)
  • Re: Recommend a scanner?
    ... Alex, I've thought about an inexpensive pda usign a scanner. ... >> We need to buy another scanning device that will run our vb.net cf ... So the app should port to any device. ...
    (microsoft.public.dotnet.framework.compactframework)
  • Re: Scanner wird nach Boot erkannt aber nicht installiert
    ... Scanner wird beim Booten auch jedesmal erkannt. ... Gruss Alex ... > Schon mal nen anderen Controller versucht oder den Controller auf nen ... > anderen PCI slot. ...
    (microsoft.public.de.german.win2000.sonstiges)
  • Re: atmosphere on c.l.py (WAS: How about "pure virtual methods"?)
    ... > Fredrik Lundh wrote: ... >> never to reply to posts by you, robert, and alex? ...
    (comp.lang.python)