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

Re: Regex not halt caputre second slash



On 8/14/23 06:41, Budi wrote:
Zsh pcre (=~) regex of repeated any char. i.e.  .* capture the first
slash but going on then cease to capture any of the rest string when
meet the second slash characters also not capture it

Please help solve !

Can you provide a reproducible example of what you are attempting to do?
Also [['s =~ operator doesn't conform to PCRE by default, its an ERE expression.




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