# PHP regular expressions

- Thread: https://externals.io/message/3737
- Original archive: https://news-web.php.net/php.internals/3737
- Started by Vesselin Atanasov on 2003-08-05T20:18:30+00:00
- Messages: 1
- Reply by email to internals@lists.php.net
- More for agents: search with https://externals.io/search.md?q={query} · JSON API at https://externals.io/api · documentation at https://externals.io/llms.txt

---

## #3737 — Vesselin Atanasov — 2003-08-05T20:18:30+00:00

URL: https://externals.io/message/3737#3737

Hello.
In regex/utils.h there is a definition for DUPMAX:

#ifdef _POSIX2_RE_DUP_MAX
#define	DUPMAX	_POSIX2_RE_DUP_MAX
#else
#define	DUPMAX	255
#endif

On Linux with glibc this effectively sets the DUPMAX count to 255. But I
think that this
number is too low, so there is no way to use a regex like .{1,256}
Is there any chance that this number will be increased or at least made
configurable?
I can make a patch if the maintainer is interested.
