Groups | Search | Server Info | Login | Register


Groups > comp.sys.acorn.misc > #21813

Re: Regex a couple of questions

From Jean-Michel <jmc.bruck@orange.fr>
Newsgroups comp.sys.acorn.misc
Subject Re: Regex a couple of questions
Date 2026-03-09 17:44 +0100
Organization Jean-Michel
Message-ID <a69bf2b65c.jmb@jmc.bruck.orange.fr> (permalink)
References <5cb6c8bbebdave@triffid.co.uk> <20260309101645.191086c4@wibble.sysadmininc.com>

Show all headers | View raw


In message <20260309101645.191086c4@wibble.sysadmininc.com>
          Nigel Reed <sysop@endofthelinebbs.com> wrote:

> On Mon, 09 Mar 2026 09:06:38 +0000 (GMT)
> Dave <dave@triffid.co.uk> wrote:

>> Good day folks,
>> I appreciate this is an Acorn NG. But my questions though about Regex
>> are directly connected to the VRPC-DL upon which I do all my Email and
>> Newsgroup Reading and Writing... (NetFetch).
>> 
>> I've looked at Regex tutorials online and my brain slowly turns to
>> mush... So please, I need a few point of clarification.  :-)
>> 
>> In Regex is  .* a real catch all ?
>> 
>> Example: Freds Pillows.*
>> 
>> Will that catch everything that follows Freds Pillows; As after a
>> while spammers will add a little something after the usual moniker?
>> 
>> 
>> So if I have a Name.*  Will adding a space after the Name .* give a
>> different result.
>> 
>> Name.*   or Name .*

> .* is a greedy match for the given character, where . means any
> character then yes, it should match until the end. If you added a space
> then there would need to be a space in your string to match, but really
> you should be using \s+ to catch one or more white spaces.


> You can use one of the many regex checkers because not all regex
> engines are built equal. I quite like https://regex101.com/ due to its
> group highlighting.

You can do Regex tests with the very good software from Martin Avison 
RegExTest.
https://homepages.force9.net/avisoft/RegExTest.htm



-- 
Jean-Michel

Back to comp.sys.acorn.misc | Previous | NextPrevious in thread | Next in thread | Find similar


Thread

Regex a couple of questions Dave <dave@triffid.co.uk> - 2026-03-09 09:06 +0000
  Re: Regex a couple of questions Nigel Reed <sysop@endofthelinebbs.com> - 2026-03-09 10:16 -0500
    Re: Regex a couple of questions Jean-Michel <jmc.bruck@orange.fr> - 2026-03-09 17:44 +0100
      Re: Regex a couple of questions Dave <dave@triffid.co.uk> - 2026-03-10 19:02 +0000
        Re: Regex a couple of questions Martin <News04@avisoft.f9.co.uk> - 2026-03-10 23:24 +0000
          Re: Regex a couple of questions Dave <dave@triffid.co.uk> - 2026-03-11 11:56 +0000
            Re: Regex a couple of questions Martin <News04@avisoft.f9.co.uk> - 2026-03-11 12:51 +0000
              Regex a couple of questions Dave <dave@triffid.co.uk> - 2026-03-12 08:43 +0000
                Re: Regex a couple of questions Martin <News04@avisoft.f9.co.uk> - 2026-03-12 09:51 +0000
                Re: Regex a couple of questions Harriet Bazley <harriet@bazleyfamily.co.uk> - 2026-03-12 10:20 +0000
                Re: Regex a couple of questions Sniffer <sniffer@dewberryfields.co.uk> - 2026-03-12 11:17 +0000

csiph-web