>>>>> On Fri, 13 Oct 2023, Arthur Zamarin wrote: >> Make this one either "[Bb]ugs? #\d+(,? #\d+)*" (which I'd prefer) >> or "[Bb]ugs? +#\d+(,? +#\d+)*". That is, same number of spaces in both >> locations.
> OK, would be hard to define it correctly in the BNF, but will just use > {n} syntax to pass the intent, and explain in English what you said here > (same amount of spaces between "things", with preferred n=1. I think you've misunderstood me. I meant that the regex should either match exactly one space, but then in both places (after "[Bb]ugs?" and after the comma). Or, it should allow an arbitrary number of spaces in both places. Ulrich
signature.asc
Description: PGP signature