Path: csiph.com!fu-berlin.de!uni-berlin.de!not-for-mail From: ram@zedat.fu-berlin.de (Stefan Ram) Newsgroups: comp.lang.python,alt.folklore.computers Subject: Re: Pythonic way to combine regular expressions? Followup-To: comp.lang.python Date: 26 Sep 2026 10:04:58 GMT Organization: Stefan Ram Lines: 12 Expires: 1 Sep 2027 11:59:58 GMT Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Trace: news.uni-berlin.de 9iSlU+PnxRSa+lpq42EpNgAOPAXMGRVEAlDwqm2gC+dGdV Cancel-Lock: sha1:gLwe7ES1ZwVeMtjIZ68GDoJN15A= sha256:mTk1ltXzzM97d7GoQf8kmHZ7UgBTBltZuq8GHuoPz9Q= X-Copyright: (C) Copyright 2026 Stefan Ram. All rights reserved. Distribution through any means other than regular usenet channels is forbidden. It is forbidden to publish this article in the Web, to change URIs of this article into links, and to transfer the body without this notice, but quotations of parts in other Usenet posts are allowed. X-No-Archive: Yes Archive: no X-No-Archive-Readme: "X-No-Archive" is set, because this prevents some services to mirror the article in the web. But the article may be kept on a Usenet archive server with only NNTP access. X-No-Html: yes Content-Language: en Xref: csiph.com comp.lang.python:198078 alt.folklore.computers:235706 Johann 'Myrkraverk' Oskarsson wrote or quoted: >We also do not want to introduce /any/ extra identifiers, nor paren- >thesis. Here's without names and parens: ^[+-]?[0-9]+$|^[+-]?[0-9]+\.[0-9]+[eE][+-]?[0-9]+$|^[+-]?[0-9]+\.[0-9]+$|^[+-]?\.[0-9]+[eE][+-]?[0-9]+$|^[+-]?\.[0-9]+$|^[+-]?[0-9]+\.[eE][+-]?[0-9]+$|^[+-]?[0-9]+\.$|^[+-]?[0-9]+[eE][+-]?[0-9]+$ Newsgroups: comp.lang.python,alt.folklore.computers Followup-To: comp.lang.python