- From: Dan Connolly <connolly@w3.org>
- Date: Mon, 14 May 2007 08:51:06 -0500
- To: Andrea Perego <andrea.perego@uninsubria.it>
- Cc: Public CWM <public-cwm-talk@w3.org>
On Mon, 2007-05-14 at 09:08 +0200, Andrea Perego wrote: > Thanks. Yes, this is what I did. However, I had to specify one rule for > each URI component: > [...] > Can this be obtained in a simpler way? Yes; try str:search: class BI_search(LightBuiltIn, Function): """a more powerful built-in for scraping using regexps. takes a list of 2 strings; the first is the input data, and the second is a regex with one or more () group. Returns the list of data matched by the () groups. -- Dan Connolly, W3C http://www.w3.org/People/Connolly/
Received on Wednesday, 16 May 2007 13:50:24 UTC