Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: regexp-replace and ^



On Oct 29,  7:08pm, Stephane Chazelas wrote:
}
} Or maybe have a (E) for ERE and (P) for PCRE parameter expansion flags
} for the ${var//pattern/replacement}.

Each of (E) and (P) already means something else.

It ought to be possible to fix regexp-replace.  A leading "^" isn't that
difficult, it just means the loop should only go around once (unless you
expect it to match after embedded newlines).  The tokens that match word
breaks require more thought.  I'm not sure what to make of lookaheads.



Messages sorted by: Reverse Date, Date, Thread, Author