Deutsch English Français Italiano |
<vhqlh7$1a8kb$1@dont-email.me> View for Bookmarking (what is this?) Look up another Usenet article |
Path: ...!eternal-september.org!feeder2.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail From: Janis Papanagnou <janis_papanagnou+ng@hotmail.com> Newsgroups: comp.unix.shell,comp.unix.programmer,comp.lang.misc Subject: Re: Command Languages Versus Programming Languages Date: Fri, 22 Nov 2024 20:20:06 +0100 Organization: A noiseless patient Spider Lines: 30 Message-ID: <vhqlh7$1a8kb$1@dont-email.me> References: <uu54la$3su5b$6@dont-email.me> <87edbtz43p.fsf@tudado.org> <0d2cnVzOmbD6f4z7nZ2dnZfqnPudnZ2d@brightview.co.uk> <uusur7$2hm6p$1@dont-email.me> <vdf096$2c9hb$8@dont-email.me> <87a5fdj7f2.fsf@doppelsaurus.mobileactivedefense.com> <ve83q2$33dfe$1@dont-email.me> <vgsbrv$sko5$1@dont-email.me> <vgtslt$16754$1@dont-email.me> <86frnmmxp7.fsf@red.stonehenge.com> <vhk65t$o5i$1@dont-email.me> <vhkev7$29sc$1@dont-email.me> <20241121110710.49@kylheku.com> <vhpp96$15bjl$1@dont-email.me> <20241122101819.161@kylheku.com> MIME-Version: 1.0 Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit Injection-Date: Fri, 22 Nov 2024 20:20:07 +0100 (CET) Injection-Info: dont-email.me; posting-host="05d615c761813a70ef328ddc0419c718"; logging-data="1385099"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/HM1/2EYCQMv/LsCmgBTfM" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.8.0 Cancel-Lock: sha1:i3bTUmNdbrzGzyB24mko7TvtTVk= In-Reply-To: <20241122101819.161@kylheku.com> X-Enigmail-Draft-Status: N1110 Bytes: 2973 On 22.11.2024 19:19, Kaz Kylheku wrote: > On 2024-11-22, Janis Papanagnou <janis_papanagnou+ng@hotmail.com> wrote: >> On 21.11.2024 20:12, Kaz Kylheku wrote: >>> [...] >>> >>> In the wild, you see regexes being used for all sorts of stupid stuff, >> >> No one can prevent folks using features for stupid things. Yes. > > But the thing is that "modern" regular expressions (Perl regex and its > progeny) have features that are designed to exclusively cater to these > folks. Which ones are you specifically thinking of? Since I'm not using Perl I don't know all the Perl RE details. Besides the basic REs I'm aware of the abbreviations (like '\d') (that I like), then extensions of Chomsky-3 (like back-references) (that I also like to have in cases I need them; but one must know what we buy with them), then the minimum-match (as opposed to matching the longest substring) (which I think is useful to simplify some types of expressions), and there was another one that evades my memories, something like context dependent patterns (also useful), and wasn't there also some syntax to match subexpression-hierarchies (useful as well) (similar like in GNU Awk's gensub() (probably in a more primitive variant there), and also existing in Kornshell patterns that also supports some more from above [Perl-]features, like the abbreviations). Janis