Deutsch English Français Italiano |
<vhpr06$15kuj$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 12:47:16 +0100 Organization: A noiseless patient Spider Lines: 30 Message-ID: <vhpr06$15kuj$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> <vhki79$2pho$1@dont-email.me> <vhkkka$3dja$1@dont-email.me> <vhll6c$9gjn$1@dont-email.me> <vhmq7d$ig5d$1@dont-email.me> <vhoaqp$qjkl$4@dont-email.me> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Date: Fri, 22 Nov 2024 12:47:22 +0100 (CET) Injection-Info: dont-email.me; posting-host="0bffdfc6132b7c2549c575b8240be95d"; logging-data="1233875"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+F7d22DOROO9EKFxz8C2BF" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.8.0 Cancel-Lock: sha1:h+5lnFaPgluT0FMJ/xdc0VB7kNA= In-Reply-To: <vhoaqp$qjkl$4@dont-email.me> X-Enigmail-Draft-Status: N1110 Bytes: 2602 On 21.11.2024 23:05, Lawrence D'Oliveiro wrote: > On Thu, 21 Nov 2024 08:15:41 -0000 (UTC), Muttley wrote: >> On Wed, 20 Nov 2024 21:43:41 -0000 (UTC) >> Lawrence D'Oliveiro <ldo@nz.invalid> boring babbled: >>[...] >>> >>> That’s what “^” and “$” are for. >> >> Yes, but people forget about those (literal) edge cases. But *only* _literally_ "edge cases". Rather they're simple and basics of regexp parsers since their beginning. > Those of us who are accustomed to using regexes do not. It's one of the first things that regexp newbies learn, I'd say. > > Another handy one is “\b” for word boundaries. I prefer \< and \> (that are quite commonly used) for such structural things, also \( and \) for allowing references to matched parts. And I prefer the \alpha regexp pattern extension forms for things like \d \D \w \W \s \S . (But that's not only a matter of taste but also a question of what any regexp parser actually supports.) Janis