[pcre-dev] [Bug 2301] Wish: (?w=[class]) modifier redefines …

Kezdőlap
Üzenet törlése
Szerző: admin
Dátum:  
Címzett: pcre-dev
Tárgy: [pcre-dev] [Bug 2301] Wish: (?w=[class]) modifier redefines word characters for \w \W shorthand and \b \B anchors.
https://bugs.exim.org/show_bug.cgi?id=2301

--- Comment #3 from Philip Hazel <ph10@???> ---
(In reply to Zoltan Herczeg from comment #2)
> You can use recursions, so you can use nice descriptive names. JIT inline
> simple recursions.


That's made me wonder whether pcre2_compile() could inline them. What counts as
"simple"? I'll think about this.

Back on topic:
I have been wondering about the possibility of setting up pcre2_compile() to
inline defined classes (or possibly general patterns) for \w or even for other
escapes such as \d. You could make, for example, \d match hexadecimal digits,
but it could be confusing. This could be restricted to defining meaning for
unused escapes, but you never know when Perl is going to add something.

It's quite a lot of work to do anything of this kind, and for the moment I'm
just going to go on thinking...

--
You are receiving this mail because:
You are on the CC list for the bug.