google / google/re2

Hexadecimal ints not handled?

Open
#593 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
C++
Stars
9.8k
Forks
1.2k
PR merge metrics
No merged PRs in 30d

Description

```
MatchFull("0x1234", "(0x[[:xdigit:]]+)", &x);
```

Works when `x` is a string but not when `x` is an `int`. Is there a way to enable different bases in integer conversion?

I suppose in some fantasy world the base of the integer string could be deduced from the characters allowed to match, but I wouldn't advocate for that.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.