Rocksolid Light

Welcome to novaBBS (click a section below)

mail  files  register  newsreader  groups  login

Message-ID:  

"But what we need to know is, do people want nasally-insertable computers?"


devel / comp.lang.python / Regular Expression bug?

SubjectAuthor
o Regular Expression bug?jose isaias cabrera

1
Regular Expression bug?

<mailman.2126.1677784973.20444.python-list@python.org>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=22142&group=comp.lang.python#22142

  copy link   Newsgroups: comp.lang.python
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!lilly.ping.de!fu-berlin.de!uni-berlin.de!not-for-mail
From: jic...@gmail.com (jose isaias cabrera)
Newsgroups: comp.lang.python
Subject: Regular Expression bug?
Date: Thu, 2 Mar 2023 14:22:41 -0500
Lines: 20
Message-ID: <mailman.2126.1677784973.20444.python-list@python.org>
References: <CAO+295u7pkb+qpuqR4-FnX_+6A6_DEcUbKDrSJT88Exgx2Xf3w@mail.gmail.com>
Mime-Version: 1.0
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Trace: news.uni-berlin.de agmUNdWASwJnXuCV+8OuBwwgRUEmttd0oXSCQUmTRK3A==
Return-Path: <jicman@gmail.com>
X-Original-To: python-list@python.org
Delivered-To: python-list@mail.python.org
Authentication-Results: mail.python.org; dkim=pass
reason="2048-bit key; unprotected key"
header.d=gmail.com header.i=@gmail.com header.b=jFwbSoIU;
dkim-adsp=pass; dkim-atps=neutral
X-Spam-Status: OK 0.063
X-Spam-Evidence: '*H*': 0.88; '*S*': 0.00; 'wrong.': 0.07;
'subject:bug': 0.09; 'import': 0.15; 'python3': 0.16; 'regexp':
0.16; 'it?': 0.19; 'to:addr:python-list': 0.20; '>>>': 0.28;
'goes': 0.28; 'message-id:@mail.gmail.com': 0.32;
'received:google.com': 0.34; 'following': 0.35;
'from:addr:gmail.com': 0.35; 'received:209.85': 0.37;
'received:209': 0.39; 'should': 0.40; 'skip:r 20': 0.64; 'spend':
0.64; 'upgrade': 0.64; 'subject:Regular': 0.84
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=gmail.com; s=20210112; t=1677784971;
h=content-transfer-encoding:to:subject:message-id:date:from
:mime-version:from:to:cc:subject:date:message-id:reply-to;
bh=+K8N9VUxqHetVKuZscQqlENZT+4p8owkqxOgcnuh59s=;
b=jFwbSoIU20U+ytSHHJaQ3bUFEBah3OH8yRnZlaoFocZvev1K2bV4upyjGg2QwzX06R
2k+rUG5GY2ppivg8OrylliNQVWPFPHwbB6/55sHXO6xr+rjfIdshTWePLKiwa8iFNoLt
zFGEeabw7i4qfm1ztneyH7aQcqYyIBq0YI+Kzq5yuDZOd6XRsVntDKAtiLayDZi/lb3e
tDp8PhmdGl7VP+fx0jkWn0+HTIh6No6QT+6lTGlIkPUiBYGAGyYzFrwrWdTOnBIq5sNJ
+NBbk34Q9iSHBrewII9VDrgsOcBS5bYzQbUzhOzJeTaOao91oJrzuWRBl0bdMFNq1+sA
J2xw==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=1e100.net; s=20210112; t=1677784971;
h=content-transfer-encoding:to:subject:message-id:date:from
:mime-version:x-gm-message-state:from:to:cc:subject:date:message-id
:reply-to;
bh=+K8N9VUxqHetVKuZscQqlENZT+4p8owkqxOgcnuh59s=;
b=JoSsIB67oit/M6Lqo3GybMDhqkvvMlgVetucFno+Pbs8LZAs/XQzX+xc0VQf+JnMZT
np6MKEneFdz5gCfR+0X7PjxYbjjp0RbmvsNqD+8+Cn29gGHejhTyVz2URzsptIhqtuQb
OpjLz64XsE30OSlD9flnUDv025yiXgtMFzXL+O3oiYyPGu24bWOaXUKiWFfobAwwmfZd
gVREvw0oeDkVc7+SeYFa7zUjmOxzaGgsR07R7Is9QNDTeSYiRbAkEC5KuzzE961yEGct
8wX+LMYL0Rruacb41hy28MkK4+XUquZdQlgemAIT6VhhmS80xVEe0ueFF44j0/qAe3Ug
SU6w==
X-Gm-Message-State: AO0yUKXmRcP+yCclivdnaxKAHKSImFm2Qawa0fZvMoq5MG/PON37Mqkb
taa+ubjWxfH3usz5SoavJTdf1pZYb9yfqKa5NogmQUNolz4biA==
X-Google-Smtp-Source: AK7set9w1smlA3DRldqslej4IOeahQWu7Pj8JZexEeoe44aLFFr4Rn9dtP0BEN5kSvtWYcd3K/OY093v3NM6OfV4CVs=
X-Received: by 2002:a05:600c:3549:b0:3e2:cc:ea47 with SMTP id
i9-20020a05600c354900b003e200ccea47mr3142568wmq.4.1677784970992; Thu, 02 Mar
2023 11:22:50 -0800 (PST)
X-BeenThere: python-list@python.org
X-Mailman-Version: 2.1.39
Precedence: list
List-Id: General discussion list for the Python programming language
<python-list.python.org>
List-Unsubscribe: <https://mail.python.org/mailman/options/python-list>,
<mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive: <https://mail.python.org/pipermail/python-list/>
List-Post: <mailto:python-list@python.org>
List-Help: <mailto:python-list-request@python.org?subject=help>
List-Subscribe: <https://mail.python.org/mailman/listinfo/python-list>,
<mailto:python-list-request@python.org?subject=subscribe>
X-Mailman-Original-Message-ID: <CAO+295u7pkb+qpuqR4-FnX_+6A6_DEcUbKDrSJT88Exgx2Xf3w@mail.gmail.com>
 by: jose isaias cabrera - Thu, 2 Mar 2023 19:22 UTC

Greetings.

For the RegExp Gurus, consider the following python3 code:
<code>
import re
s = "pn=align upgrade sd=2023-02-"
ro = re.compile(r"pn=(.+) ")
r0=ro.match(s)
>>> print(r0.group(1))
align upgrade
</code>

This is wrong. It should be 'align' because the group only goes up-to
the space. Thoughts? Thanks.

josé

--

What if eternity is real? Where will you spend it? Hmmmm...

1
server_pubkey.txt

rocksolid light 0.9.81
clearnet tor