Re: [Tutor] RegEx query

2005-12-19 Thread Kent Johnson
Liam Clarke wrote: > Hi Kent, > > I apologise for the not overly helpful initial post. > > I had six possible uris to deal with - > > /thread/28742/ > /thread/28742/?s=1291819247219837219837129 > /thread/28742/5/ > /thread/28742/5/?s=1291819247219837219837129 > /thread/28742/?goto=lastpost > /th

Re: [Tutor] RegEx query

2005-12-19 Thread Liam Clarke
Hi Kent, I apologise for the not overly helpful initial post. I had six possible uris to deal with - /thread/28742/ /thread/28742/?s=1291819247219837219837129 /thread/28742/5/ /thread/28742/5/?s=1291819247219837219837129 /thread/28742/?goto=lastpost /thread/28742/?s=1291819247219837219837129&got

Re: [Tutor] RegEx query

2005-12-17 Thread Kent Johnson
Liam Clarke wrote: > Hi all, > > Using Beautiful Soup and regexes.. I've noticed that all the examples > used regexes like so - anchors = parseTree.fetch("a", > {"href":re.compile("pattern")} ) instead of precompiling the pattern. > > Myself, I have the following code - > z = [] x = q.f