[PATCH 00/11] regex patches

Simon Glass sjg at chromium.org
Sat May 10 13:25:41 CEST 2025


On Tue, 6 May 2025 at 16:15, Rasmus Villemoes <ravi at prevas.dk> wrote:
>
> This started as a rather simple patch, 1/11, adding the ability to
> more conveniently do regex matching in shell.
>
> But with that, it became very easy to see what the slre library can
> and especially what it cannot do, and that way I found both outright
> bugs and a "wow, doesn't it support that syntax" gotcha. I couldn't
> find any tests ('git grep slre -- test/' was empty), so I added a
> small test suite and tweaked slre.c.
>
> Rasmus Villemoes (11):
>   cmd: test: add support for =~ operator
>   slre: add myself as maintainer
>   test: slre: add tests for regex library
>   slre: drop wrong "anchored" optimization
>   test: slre: add more test cases
>   test: slre: add some (negative) character class tests
>   slre: refactor is_any_but()
>   slre: fix matching of escape sequence used inside character class
>   test: slre: add test cases for escape char in character class
>   slre: implement support for ranges in character classes
>   test: slre: add tests for character ranges
>
>  MAINTAINERS       |  7 +++++
>  cmd/test.c        | 19 ++++++++++++
>  include/slre.h    |  1 -
>  lib/slre.c        | 78 ++++++++++++++++++++++++++++++++---------------
>  test/lib/Makefile |  1 +
>  test/lib/slre.c   | 58 +++++++++++++++++++++++++++++++++++
>  6 files changed, 138 insertions(+), 26 deletions(-)
>  create mode 100644 test/lib/slre.c
>
> --
> 2.49.0
>

For the series:

Reviewed-by: Simon Glass <sjg at chromium.org>

Thank you for doing this.


More information about the U-Boot mailing list