regex: treat \| in BRE as alternation
The standard does not define semantics for \| in BRE, but some code depends on it meaning alternation. Empty alternative expression is allowed to be consistent with ERE. Based on a patch by Rob Landley.
Showing
想要评论请 注册 或 登录