boostorg / boostorg/regex

[Feature Request] Boost.regex - allow OR operator in look-behind

Open
#225 5 comments 0 reactions 0 assignees View on GitHub
Dominant language
C++
Stars
119
Forks
113
PR merge metrics
No merged PRs in 30d

Description

### Description

As the title says.

The lib doesnt accept OR operator in lookbehind.
Example:
```js
/\w+(?<=Sublime|Bob)/
```
doesnt work.

BUT it accepts this:
```js
/\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:
```js
/\w+(?<=(?:Sublime|Bob))/
```
```js
/\w+(?<=\s?Sublime)/
```

Contributor guide

No contributing guide indexed for this repository

Research direction

The issue names no source files, tests, or entry points. Start by reproducing the listed look-behind examples in the existing Boost.Regex test setup, then trace how look-behind alternatives are parsed and validated; done means the OR, noncapturing-group, and optional-space examples work without regressing existing look-behind behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
tooling
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.