firasdib / Regex101

This repository is currently only used for issue tracking for www.regex101.com
3.21k stars 198 forks source link

Gives error in \d+ when it works in Kotlin #2037

Closed nikhilCad closed 1 year ago

nikhilCad commented 1 year ago

Bug Description

I used (?<="post_id": "\d+"), for Regex, the site gave me an error at \d+ image

See it here in Kotlin Playground

Reproduction steps

-

Expected Outcome

Since this pattern works in Kotlin Regex, I expected the website to tell me the same

Browser

Edge 111.0.1661.54

OS

Windows 10

nikhilCad commented 1 year ago

(?<="post_id": "[0-9]{5}"), works fine, the compiler starts complaining about variable lengths