diff options
author | Jared Hancock <jared.hancock@centeredsolutions.com> | 2024-03-25 20:58:51 -0500 |
---|---|---|
committer | Damien George <damien@micropython.org> | 2025-08-11 14:11:56 +1000 |
commit | 14ccdeb4d7b9b88ab012258e77d3070340fbc3da (patch) | |
tree | 5dfddbc202170ecaa12f1d61746442afef938f5b /docs/tutorial/assembler.rst | |
parent | 485dac783b8ba7b88fdbf28fcdf54eb053cd8ef7 (diff) |
extmod/modre: Add support for start- and endpos.
Pattern objects have two additional parameters for the ::search and ::match
methods to define the starting and ending position of the subject within
the string to be searched.
This allows for searching a sub-string without creating a slice. However,
one caveat of using the start-pos rather than a slice is that the start
anchor (`^`) remains anchored to the beginning of the text.
Signed-off-by: Jared Hancock <jared@greezybacon.me>
Diffstat (limited to 'docs/tutorial/assembler.rst')
0 files changed, 0 insertions, 0 deletions