sexpect icon indicating copy to clipboard operation
sexpect copied to clipboard

[v2.3.14] add a new cli option to enable "regcomp(cflags|=REG_NEWLINE)"

Open clarkwang opened this issue 3 years ago • 0 comments

Related subcommands

  • expect -re PATTERN
  • ~expect -glob PATTERN~
  • interact -re PATTERN
  • interact -subst PATTERN::REPLACE

New option name?

  • ~-REG_NEWLINE~
  • -anchor-newline | -anchor

Implementation

  • With -anchor-newline, is it good idea to convert \r+\n to \n before calling regexec()?
    • Don't bother!

clarkwang avatar Aug 22 '22 04:08 clarkwang