On Fri, 12 Jun 2009 06:20:24 +0100, meryl
wrote:
On Jun 11, 9:41 pm, "Mark Tolonen" wrote:
"meryl" wrote in message
> Hi,
> I have this regular expression
> blockRE = re.compile(".*RenderBlock {\w+}")
> it works if my source is "RenderBlock {CENTER}".
[snip]
---cod
To the OP,
I suggest if you haven't yet Kodos, to get it here
http://kodos.sourceforge.net/.
It's a python regexp debugger, a lifetime saver.
Jean-Michel
John S wrote:
On Jun 11, 10:30 pm, meryl wrote:
Hi,
I have this regular expression
blockRE = re.compile(".*RenderBlock {\w+}")
it w
2009/6/12 meryl :
> On Jun 11, 9:41 pm, "Mark Tolonen" wrote:
>> "meryl" wrote in message
>>
>> > I have this regular expression
>...
> I try adding ".*" at the end , but it ends up just matching the second
> one.
If there can be more matches in a line, maybe the non-greedy
quantifier ".*?", a
On Jun 11, 9:41 pm, "Mark Tolonen" wrote:
> "meryl" wrote in message
>
> news:2d4d8624-043b-4f5f-ae2d-bf73bca3d...@p6g2000pre.googlegroups.com...
>
>
>
>
>
> > Hi,
>
> > I have this regular expression
> > blockRE = re.compile(".*RenderBlock {\w+}")
>
> > it works if my source is "RenderBlock {CEN
On Jun 11, 10:30 pm, meryl wrote:
> Hi,
>
> I have this regular expression
> blockRE = re.compile(".*RenderBlock {\w+}")
>
> it works if my source is "RenderBlock {CENTER}".
>
> But I want it to work with
> 1. RenderTable {TABLE}
>
> So i change the regexp to re.compile(".*Render[Block|Table] {\w+
"meryl" wrote in message
news:2d4d8624-043b-4f5f-ae2d-bf73bca3d...@p6g2000pre.googlegroups.com...
Hi,
I have this regular expression
blockRE = re.compile(".*RenderBlock {\w+}")
it works if my source is "RenderBlock {CENTER}".
But I want it to work with
1. RenderTable {TABLE}
So i change the
Hi,
I have this regular expression
blockRE = re.compile(".*RenderBlock {\w+}")
it works if my source is "RenderBlock {CENTER}".
But I want it to work with
1. RenderTable {TABLE}
So i change the regexp to re.compile(".*Render[Block|Table] {\w+}"),
but that breaks everything
2. RenderBlock (CENT