You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
_Lookbehind
(?<=pattern) consumes zero characters, only if pattern could be matched against the characters preceding the current position (pattern must be of fixed length).
(?<!pattern) consumes zero characters, only if pattern could not be matched against the characters preceding the current position (pattern must be of fixed length)._
The desired functionality can often instead be created by using an OR of two separate look-behinds:
/\w+(?:(?<=Sublime)|(?<=Bob))/
Or adapt your branches to make them the same length such as:
Description
As the title says.
The lib doesnt accept OR operator in lookbehind.
Example:
/\w+(?<=Sublime|Bob)/
doesnt work.
BUT it accepts this:
/\w+(?<=Sublime)(?<=Bob)/
I would like the lib to support the OR operation for the regex look-behind
Other Details
These don't work too:
/\w+(?<=(?:Sublime|Bob))/
/\w+(?<=\s?Sublime)/
The text was updated successfully, but these errors were encountered: