Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #60256 > unrolled thread

find matching contiguous text

Started bybruce <badouglas@gmail.com>
First post2013-11-22 19:30 -0500
Last post2013-11-22 19:30 -0500
Articles 1 — 1 participant

Back to article view | Back to comp.lang.python


Contents

  find matching contiguous text bruce <badouglas@gmail.com> - 2013-11-22 19:30 -0500

#60256 — find matching contiguous text

Frombruce <badouglas@gmail.com>
Date2013-11-22 19:30 -0500
Subjectfind matching contiguous text
Message-ID<mailman.3060.1385166656.18130.python-list@python.org>
Hi.

I have a xpath test that generates the text/html between two xpath
functions, basically a chunk of HTML between two dom elements.

However, it's slow. As a test, I'd like to compare the speed if I get
all the HTML following a given element, and then get all the HTML
preceding a given element.. and then do a "union/join/intersection" of
the text between the two text segments.

I'm trying to find an efficient/effective approach to determining the
contiguous matching text, where the text starts with the 1st line in
the test from the following element test.

Thanks

[toc] | [standalone]


Back to top | Article view | comp.lang.python


csiph-web