[Tutor] Parse text with python

Danilo Chilene bicofino at gmail.com
Thu Oct 17 22:55:45 CEST 2013


Hi,

The part that always change is the 6666, it can be 1 digit or 4 digits.
Example: 1.
The part that never changes is the 1700.


On Thu, Oct 17, 2013 at 5:37 PM, Danny Yoo <dyoo at hashcollision.org> wrote:

> Do you have other domain-specific information about this text?
>  Concretely: if you have another similar report, what parts will have to
> stay the same, and what parts might change?
>
> You want to make sure whatever you're using to anchor and search is based
> on something stable.  Otherwise, your program may be too fragile to changes
> in the input, or worse, may be so general as to accidentally anchor to
> something that just happens to look like the text you're search for, but in
> the wrong place!
>
> The more you know about the general shape of the thing you're processing,
> the better chance you have to do a pattern matching that isn't too overly
> generic or specific.
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/tutor/attachments/20131017/6d0018f6/attachment.html>


More information about the Tutor mailing list