Nicholas Wilson
abc24458b8
Small update to pcre2compat description of braced quantifiers
2025-06-02 08:15:38 +00:00
Nicholas Wilson
eb3bd3cf14
New pcre2_next_match() API to simplify pcre2demo, test, and substitute ( #733 )
...
* The primary purpose of pcre2_next_match() is to make it much easier for
PCRE2 clients to iterate over matches, without needing an advanced knowledge
of regular expressions.
* Secondly, we can simplify our own code by merging the three duplicate
implementations of the /g global match behaviour: pcre2demo, pcre2_substitute,
and pcre2test.
* Thirdly, as I look closely at the issue, I can improve the documentation.
* Fourthly, I would like to actually simplify the logic, removing a complex loop
which makes several match attempts, swallows duplicate matches, and more.
We can have identical behaviour with a simple retry using
PCRE2_NOTEMPTY_ATSTART.
2025-03-24 13:29:52 +00:00
Nicholas Wilson
1fffb0d44e
Updates to the README and some documentation ( #681 )
2025-02-01 15:50:20 +00:00
Nicholas Wilson
e02e52804c
Update release number to 10.46-DEV #noupdate ( #667 )
2025-01-12 15:28:37 +00:00
Nicholas Wilson
f15bdd334d
Update all man page dates #noupdate ( #634 )
2024-12-18 14:12:58 +00:00
Carlo Marcelo Arenas Belón
c0d86f7d21
pcre2test: tighten \x{...} parsing in subject ( #504 )
...
Eventhough it is documented that invalid escapes will be reported,
the code would fallback in that case and result in a NUL being
generated whenever an incompete \x{ escape was being parsed.
Refactor the code to report the error instead and fix the logic used
for overlong numbers so that the truncation doesn't result in an
unexpected value being used.
There was an old (from PCRE 4.0) test that was affected but which is
no longer relevant, because it could only be triggered with invalid
UTF (which isn't supported), and that was therefore removed as a
result.
Additionally, it was found that the same syntax error was affecting
perltest so correct that as well by reporting syntax errors in the
subject lines.
While at it update related documentation for Perl's compatibility.
2024-10-02 12:13:37 +01:00
Carlo Marcelo Arenas Belón
6f5a4d9fd0
doc: fix silly confusion about re "strict" ( #493 )
...
in Perl, `use strict` has no effect on this feature but instead
the "strict" mode referenced applies to `use re 'strict'`
2024-09-24 16:28:52 +01:00
Philip Hazel
f964982eec
Add documentation for PCRE2_EXTRA_BS0 and PCRE2_EXTRA_PYTHON_OCTAL
2024-09-21 10:17:10 +01:00
Philip Hazel
3808655ed4
Documentation update re (*THEN)
2024-09-01 17:01:38 +01:00
Philip Hazel
7a0eda1f66
Update documentation for scan_substring; also some code trailing space tidies
2024-08-30 17:31:55 +01:00
Philip Hazel
cedb1fb546
Update documentation of \Q...\E
2024-08-12 17:48:59 +01:00
Philip Hazel
6d82f0cd3d
Alter case-independent matching of \p{Lu} etc. to match Perl
2024-07-23 15:54:29 +01:00
Philip Hazel
8e83acc599
Upgrade interpreter to match JIT in handling of nested pattern recursions
2023-11-30 16:05:33 +00:00
Carlo Marcelo Arenas Belón
231824ff6c
doc: mention binary properties and ascii options ( #308 )
2023-10-12 16:30:20 +01:00
Philip Hazel
80053ba153
Documentation and tests update
2023-09-20 13:26:10 +01:00
Philip Hazel
0fa5367fa7
Update meaning of {,5} etc to match update in Perl 5.34.0; refactor quantifier parsing
2023-09-13 17:43:43 +01:00
Philip Hazel
5974a84364
Update documentation for variable-length lookbehinds
2023-08-11 18:38:20 +01:00
Philip Hazel
6bf8045997
Documentation update for new PCRE2_EXTRA caseless and ASCII options
2023-02-04 17:19:56 +00:00
Philip Hazel
30abd0ac8d
Documentation for Bidi_Control and Bidi_Class
2021-12-08 16:37:34 +00:00
Philip Hazel
ba3d0edcbd
Documentation update
2021-12-01 16:21:08 +00:00
Philip Hazel
21c26698b3
Lock out \K in lookaround assertions by default, but provide an option to
...
re-enable the old behaviour, just in case.
2021-08-30 16:57:44 +01:00
Philip.Hazel
000bbf2ea7
File tidies for 10.36-RC1
2020-11-06 17:27:35 +00:00
Philip.Hazel
6d4936dc29
Documentation update
2020-10-07 16:27:20 +00:00
Philip.Hazel
ae9208ab7b
Source tidies (trailing spaces) etc. for 10.34-RC1.
2019-10-17 16:39:38 +00:00
Philip.Hazel
620f3a1307
Implement non-atomic positive assertions.
2019-07-13 11:12:03 +00:00
Philip.Hazel
8c8deae8eb
Implement PCRE2_EXTRA_ALT_BSUX to support ECMAscript 6's \u{hhh..} syntax.
2019-02-12 17:50:19 +00:00
Philip.Hazel
d7b10a57d1
Allow non-ASCII in group names when UTF is set; revise group naming terminology
...
in documentation to use "capture group", as Perl does.
2019-02-06 18:11:36 +00:00
Philip.Hazel
392974a0cb
File tidies and documentation update for 10.32-RC1 Release Candidate.
2018-08-13 11:57:09 +00:00
Philip.Hazel
27337495dc
Documentation update regarding \Q handling.
2018-07-28 15:08:22 +00:00
Philip.Hazel
a9453f096f
Give specific error for \F as for \L, \U etc.
2018-07-27 16:55:52 +00:00
Philip.Hazel
fabea723cf
Typos in documentation and comments noted by Jason Hood.
2018-06-17 14:13:28 +00:00
Philip.Hazel
810d9b6da5
Code tidies for 10.30-RC1 release candidate.
2017-07-19 16:04:15 +00:00
Philip.Hazel
3dca43fdff
Implement PCRE2_EXTENDED_MORE and friends.
2017-04-18 12:32:52 +00:00
Philip.Hazel
2b2074c915
Documentation update.
2017-04-17 15:39:09 +00:00
Philip.Hazel
7be3fef0ea
Documentation update.
2017-04-03 18:00:37 +00:00
Philip.Hazel
424bba4d15
Documentation update.
2017-03-29 18:10:55 +00:00
Philip.Hazel
ca1ecd41a1
File tidies for 10.23-RC1
2017-01-16 17:40:47 +00:00
Philip.Hazel
d0c011116e
Fix typo.
2016-10-18 15:37:31 +00:00
Philip.Hazel
99264dfc23
Major refactoring of pcre2_compile.c; see ChangeLog and HACKING.
2016-10-02 16:01:01 +00:00
Philip.Hazel
2ec7cbf9b5
Documentation for callouts with string arguments.
2015-03-15 17:49:03 +00:00
Philip.Hazel
78b9e3d078
More documentation edits.
2014-11-17 16:59:02 +00:00
Philip.Hazel
e15b64ef03
More draft documentation.
2014-09-28 17:39:28 +00:00